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.
|
||||
-- This will auto-import if your LSP supports it.
|
||||
-- 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.
|
||||
-- Generally you don't need this, because nvim-cmp will display
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
return {
|
||||
'folke/trouble.nvim',
|
||||
branch = 'dev', -- IMPORTANT!
|
||||
-- branch = 'dev', -- IMPORTANT!
|
||||
cmd = 'Trouble',
|
||||
keys = {
|
||||
{
|
||||
'<leader>xx',
|
||||
|
|
Loading…
Reference in New Issue