nvim: borrar cmp
This commit is contained in:
parent
74c1739c23
commit
e78b379f28
5 changed files with 0 additions and 30 deletions
|
@ -15,23 +15,6 @@ autocmd ColorScheme * highlight! Normal guibg=NONE
|
|||
set completeopt=menu,menuone,noselect
|
||||
|
||||
lua << EOF
|
||||
local cmp = require'cmp'
|
||||
|
||||
cmp.setup({
|
||||
mapping = {
|
||||
['<C-d>'] = cmp.mapping.scroll_docs(-4),
|
||||
['<C-f>'] = cmp.mapping.scroll_docs(4),
|
||||
['<C-Space>'] = cmp.mapping.complete(),
|
||||
['<C-e>'] = cmp.mapping.close(),
|
||||
['<C-CR>'] = cmp.mapping.confirm({ select = true }),
|
||||
},
|
||||
sources = {
|
||||
{ name = 'nvim_lsp' },
|
||||
{ name = 'buffer' },
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
local nvim_lsp = require('lspconfig')
|
||||
|
||||
-- Use an on_attach function to only map the following keys
|
||||
|
@ -65,7 +48,6 @@ local servers = { 'zls', 'gopls', 'tsserver' }
|
|||
for _, lsp in ipairs(servers) do
|
||||
nvim_lsp[lsp].setup {
|
||||
on_attach = on_attach,
|
||||
capabilities = require('cmp_nvim_lsp').update_capabilities(vim.lsp.protocol.make_client_capabilities()),
|
||||
}
|
||||
end
|
||||
EOF
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
Subproject commit 5dde5430757696be4169ad409210cf5088554ed6
|
|
@ -1 +0,0 @@
|
|||
Subproject commit 246a41c55668d5f84afcd805ee73b6e419375ae0
|
|
@ -1 +0,0 @@
|
|||
Subproject commit cc21a61910b89422122cc0c67a8265247bd0db6a
|
9
.gitmodules
vendored
9
.gitmodules
vendored
|
@ -1,12 +1,3 @@
|
|||
[submodule ".config/nvim/pack/plugins/start/cmp-buffer"]
|
||||
path = .config/nvim/pack/plugins/start/cmp-buffer
|
||||
url = https://github.com/hrsh7th/cmp-buffer
|
||||
[submodule ".config/nvim/pack/plugins/start/cmp-nvim-lsp"]
|
||||
path = .config/nvim/pack/plugins/start/cmp-nvim-lsp
|
||||
url = https://github.com/hrsh7th/cmp-nvim-lsp
|
||||
[submodule ".config/nvim/pack/plugins/start/nvim-cmp"]
|
||||
path = .config/nvim/pack/plugins/start/nvim-cmp
|
||||
url = https://github.com/hrsh7th/nvim-cmp
|
||||
[submodule ".config/nvim/pack/plugins/start/nvim-lspconfig"]
|
||||
path = .config/nvim/pack/plugins/start/nvim-lspconfig
|
||||
url = https://github.com/neovim/nvim-lspconfig
|
||||
|
|
Loading…
Reference in a new issue