nvim: update bindings
This commit is contained in:
@@ -26,6 +26,7 @@ telescope.setup({
|
|||||||
map("n", "<C-f>", "<cmd> Telescope find_files<CR>", default_opts) -- Show files
|
map("n", "<C-f>", "<cmd> Telescope find_files<CR>", default_opts) -- Show files
|
||||||
map("n", "<C-g>", "<cmd> Telescope live_grep<CR>", default_opts) -- Grep through current directory
|
map("n", "<C-g>", "<cmd> Telescope live_grep<CR>", default_opts) -- Grep through current directory
|
||||||
map("n", "<C-k>", "<cmd> Telescope keymaps<CR>", default_opts) -- Show all keys
|
map("n", "<C-k>", "<cmd> Telescope keymaps<CR>", default_opts) -- Show all keys
|
||||||
|
map("n", "<C-s>", "<cmd> Telescope current_buffer_fuzzy_find<CR>", default_opts) -- Grep through current file
|
||||||
|
|
||||||
-- Telescope + LSP
|
-- Telescope + LSP
|
||||||
map("n", "<leader>la", "<cmd> lua vim.lsp.buf.code_action()<CR>", default_opts) -- Apply LSP code action
|
map("n", "<leader>la", "<cmd> lua vim.lsp.buf.code_action()<CR>", default_opts) -- Apply LSP code action
|
||||||
|
|||||||
@@ -218,8 +218,8 @@ return require('packer').startup(function(use)
|
|||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
sources = {
|
sources = {
|
||||||
{ name = 'luasnip', keyword_length = 3, max_item_count = 3 },
|
{ name = 'luasnip', keyword_length = 1, max_item_count = 3 },
|
||||||
{ name = 'nvim_lsp', keyword_length = 3, max_item_count = 10 },
|
{ name = 'nvim_lsp', keyword_length = 1, max_item_count = 10 },
|
||||||
{ name = 'buffer', keyword_length = 5, max_item_count = 3 },
|
{ name = 'buffer', keyword_length = 5, max_item_count = 3 },
|
||||||
{ name = 'path' },
|
{ name = 'path' },
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user