Added todo search tools
This commit is contained in:
parent
de6db6ac97
commit
605fad9ea1
3 changed files with 16 additions and 2 deletions
|
|
@ -1,3 +1,4 @@
|
|||
require("core.plugin_config.gruvbox")
|
||||
require("core.plugin_config.lualine")
|
||||
require("core.plugin_config.nvim-tree")
|
||||
require("core.plugin_config.telescope")
|
||||
|
|
@ -7,4 +8,3 @@ require("core.plugin_config.completions")
|
|||
require("core.plugin_config.terminal")
|
||||
require("core.plugin_config.whichkey")
|
||||
require("core.plugin_config.indent-blankline")
|
||||
require("core.plugin_config.gruvbox")
|
||||
|
|
|
|||
|
|
@ -33,6 +33,13 @@ local keymap = {
|
|||
b = { '<Cmd>Telescope git_branches<CR>', 'Branches' },
|
||||
s = { '<Cmd>Telescope git_status<CR>', 'Status' },
|
||||
},
|
||||
T = {
|
||||
name = '+todo',
|
||||
j = { '<Cmd>TodoLocList<CR>', 'List TODO:\'s in buffer' },
|
||||
T = { '<Cmd>TodoTelescope<CR>', 'Search TODO:\'s' },
|
||||
n = {function() require("todo-comments").jump_next() end, 'Jump to next TODO:' },
|
||||
N = {function() require("todo-comments").jump_prev() end, 'Jump to previous TODO:' },
|
||||
},
|
||||
w = {
|
||||
name = '+window',
|
||||
w = 'Pick Window',
|
||||
|
|
@ -54,7 +61,7 @@ local keymap = {
|
|||
}
|
||||
}
|
||||
-- Map window keys to leader w
|
||||
vim.cmd[[nmap <leader>w <C-w>]]
|
||||
vim.cmd [[nmap <leader>w <C-w>]]
|
||||
|
||||
whichkey.setup {
|
||||
hide_statusline = false,
|
||||
|
|
|
|||
|
|
@ -24,6 +24,7 @@ local plugins = {
|
|||
opts = {} -- this is equalent to setup({}) function
|
||||
},
|
||||
'akinsho/toggleterm.nvim',
|
||||
-- keybind tooltip
|
||||
{
|
||||
"folke/which-key.nvim",
|
||||
event = "VeryLazy",
|
||||
|
|
@ -39,6 +40,12 @@ local plugins = {
|
|||
branch = "0.1.x",
|
||||
dependencies = { { 'nvim-lua/plenary.nvim' } }
|
||||
},
|
||||
-- TODO
|
||||
{
|
||||
"folke/todo-comments.nvim",
|
||||
dependencies = { "nvim-lua/plenary.nvim" },
|
||||
opts = {}
|
||||
},
|
||||
-- Lsp
|
||||
{
|
||||
'williamboman/mason.nvim',
|
||||
|
|
|
|||
Loading…
Reference in a new issue