nvim: update bindings

This commit is contained in:
Marco Thomas
2022-08-27 22:18:07 +02:00
parent 054c23624b
commit a380efd048
2 changed files with 6 additions and 5 deletions

View File

@@ -23,9 +23,10 @@ telescope.setup({
}
}
})
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-k>", "<cmd> Telescope keymaps<CR>", default_opts) -- Show all keys
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-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
map("n", "<leader>la", "<cmd> lua vim.lsp.buf.code_action()<CR>", default_opts) -- Apply LSP code action

View File

@@ -218,8 +218,8 @@ return require('packer').startup(function(use)
end,
},
sources = {
{ name = 'luasnip', keyword_length = 3, max_item_count = 3 },
{ name = 'nvim_lsp', keyword_length = 3, max_item_count = 10 },
{ name = 'luasnip', keyword_length = 1, max_item_count = 3 },
{ name = 'nvim_lsp', keyword_length = 1, max_item_count = 10 },
{ name = 'buffer', keyword_length = 5, max_item_count = 3 },
{ name = 'path' },
},