diff --git a/lua/config/keymaps.lua b/lua/config/keymaps.lua index 55c3481..57aebbf 100644 --- a/lua/config/keymaps.lua +++ b/lua/config/keymaps.lua @@ -20,10 +20,3 @@ vim.api.nvim_set_keymap("v", "˚", ":m '<-2gv=gv", { noremap = true }) -- Remap space to be leader rather than the default backslash key vim.api.nvim_set_keymap("n", "", "", { noremap = true }) - --- Set nvim-telescope/telescope.nvim keybindings -local builtin = require('telescope.builtin') -vim.keymap.set('n', 'tf', builtin.find_files, {}) -vim.keymap.set('n', 'tg', builtin.live_grep, {}) -vim.keymap.set('n', 'tb', builtin.buffers, {}) -vim.keymap.set('n', 'th', builtin.help_tags, {}) diff --git a/lua/plugins/telescope.lua b/lua/plugins/telescope.lua new file mode 100644 index 0000000..e23f1f4 --- /dev/null +++ b/lua/plugins/telescope.lua @@ -0,0 +1,28 @@ +return { + { + "nvim-telescope/telescope.nvim", + dependencies = { "nvim-lua/plenary.nvim" }, + keys = { + { + "tf", + "Telescope find_files", + desc = "Find Files (Telescope)", + }, + { + "tg", + "Telescope live_grep", + desc = "Live Grep (Telescope)", + }, + { + "tb", + "Telescope buffers", + desc = "Show Buffers (Telescope)", + }, + { + "th", + "Telescope help_tags", + desc = "Show help tags (Telescope)", + }, + }, + }, +} diff --git a/lua/plugins/todo.lua b/lua/plugins/todo.lua index a4d29de..4c08a74 100644 --- a/lua/plugins/todo.lua +++ b/lua/plugins/todo.lua @@ -7,7 +7,7 @@ return { "td", "TodoTelescope", desc = "Toggle todo list (todo-comments)", - } - } - } + }, + }, + }, } diff --git a/lua/plugins/trouble.lua b/lua/plugins/trouble.lua index 5e8d67a..1cbba53 100644 --- a/lua/plugins/trouble.lua +++ b/lua/plugins/trouble.lua @@ -6,7 +6,7 @@ return { "tt", "Trouble diagnostics toggle", desc = "Diagnostics (Trouble)", - } - } - } + }, + }, + }, }