Added todo search tools

This commit is contained in:
Warwick 2023-08-17 15:45:44 +01:00
parent de6db6ac97
commit 605fad9ea1
3 changed files with 16 additions and 2 deletions

View file

@ -1,3 +1,4 @@
require("core.plugin_config.gruvbox")
require("core.plugin_config.lualine") require("core.plugin_config.lualine")
require("core.plugin_config.nvim-tree") require("core.plugin_config.nvim-tree")
require("core.plugin_config.telescope") require("core.plugin_config.telescope")
@ -7,4 +8,3 @@ require("core.plugin_config.completions")
require("core.plugin_config.terminal") require("core.plugin_config.terminal")
require("core.plugin_config.whichkey") require("core.plugin_config.whichkey")
require("core.plugin_config.indent-blankline") require("core.plugin_config.indent-blankline")
require("core.plugin_config.gruvbox")

View file

@ -33,6 +33,13 @@ local keymap = {
b = { '<Cmd>Telescope git_branches<CR>', 'Branches' }, b = { '<Cmd>Telescope git_branches<CR>', 'Branches' },
s = { '<Cmd>Telescope git_status<CR>', 'Status' }, 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 = { w = {
name = '+window', name = '+window',
w = 'Pick Window', w = 'Pick Window',
@ -54,7 +61,7 @@ local keymap = {
} }
} }
-- Map window keys to leader w -- Map window keys to leader w
vim.cmd[[nmap <leader>w <C-w>]] vim.cmd [[nmap <leader>w <C-w>]]
whichkey.setup { whichkey.setup {
hide_statusline = false, hide_statusline = false,

View file

@ -24,6 +24,7 @@ local plugins = {
opts = {} -- this is equalent to setup({}) function opts = {} -- this is equalent to setup({}) function
}, },
'akinsho/toggleterm.nvim', 'akinsho/toggleterm.nvim',
-- keybind tooltip
{ {
"folke/which-key.nvim", "folke/which-key.nvim",
event = "VeryLazy", event = "VeryLazy",
@ -39,6 +40,12 @@ local plugins = {
branch = "0.1.x", branch = "0.1.x",
dependencies = { { 'nvim-lua/plenary.nvim' } } dependencies = { { 'nvim-lua/plenary.nvim' } }
}, },
-- TODO
{
"folke/todo-comments.nvim",
dependencies = { "nvim-lua/plenary.nvim" },
opts = {}
},
-- Lsp -- Lsp
{ {
'williamboman/mason.nvim', 'williamboman/mason.nvim',