fix trouble and set LSP autocomplete key to Tab
This commit is contained in:
parent
4323cb847b
commit
7a86cc4b56
3
init.lua
3
init.lua
|
@ -658,7 +658,8 @@ require('lazy').setup({
|
||||||
-- Accept ([y]es) the completion.
|
-- Accept ([y]es) the completion.
|
||||||
-- This will auto-import if your LSP supports it.
|
-- This will auto-import if your LSP supports it.
|
||||||
-- This will expand snippets if the LSP sent a snippet.
|
-- This will expand snippets if the LSP sent a snippet.
|
||||||
['<C-y>'] = cmp.mapping.confirm { select = true },
|
-- original: ['<C-y>'] = cmp.mapping.confirm { select = true },
|
||||||
|
['<Tab>'] = cmp.mapping.confirm { select = true },
|
||||||
|
|
||||||
-- Manually trigger a completion from nvim-cmp.
|
-- Manually trigger a completion from nvim-cmp.
|
||||||
-- Generally you don't need this, because nvim-cmp will display
|
-- Generally you don't need this, because nvim-cmp will display
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
return {
|
return {
|
||||||
'folke/trouble.nvim',
|
'folke/trouble.nvim',
|
||||||
branch = 'dev', -- IMPORTANT!
|
-- branch = 'dev', -- IMPORTANT!
|
||||||
|
cmd = 'Trouble',
|
||||||
keys = {
|
keys = {
|
||||||
{
|
{
|
||||||
'<leader>xx',
|
'<leader>xx',
|
||||||
|
|
Loading…
Reference in New Issue