Tune completion sources & update comment
This commit is contained in:
parent
6ef97d96c5
commit
781cb49cb2
@ -81,11 +81,11 @@ return {
|
|||||||
['<C-l>'] = cmp.mapping.confirm({ select = true }),
|
['<C-l>'] = cmp.mapping.confirm({ select = true }),
|
||||||
}),
|
}),
|
||||||
sources = {
|
sources = {
|
||||||
{ name = 'nvim_lsp' },
|
|
||||||
{ name = 'luasnip' },
|
{ name = 'luasnip' },
|
||||||
{ name = 'buffer' },
|
{ name = 'nvim_lsp' },
|
||||||
|
-- { name = 'buffer' },
|
||||||
{ name = 'path' },
|
{ name = 'path' },
|
||||||
{ name = 'cmdline' },
|
-- { name = 'cmdline' },
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -98,7 +98,7 @@ return {
|
|||||||
vim.keymap.set('n', '<C-p>', vim.diagnostic.goto_prev, { noremap = true })
|
vim.keymap.set('n', '<C-p>', vim.diagnostic.goto_prev, { noremap = true })
|
||||||
vim.keymap.set('n', '<leader>sd', vim.diagnostic.open_float, { noremap = true })
|
vim.keymap.set('n', '<leader>sd', vim.diagnostic.open_float, { noremap = true })
|
||||||
|
|
||||||
-- Mappings to create once a language server attaches to a buffer
|
-- LSP mappings created when attached to a buffer
|
||||||
local augroup = vim.api.nvim_create_augroup('lsp', { clear = true })
|
local augroup = vim.api.nvim_create_augroup('lsp', { clear = true })
|
||||||
vim.api.nvim_create_autocmd('LspAttach', {
|
vim.api.nvim_create_autocmd('LspAttach', {
|
||||||
pattern = '*',
|
pattern = '*',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user