From e78b379f2821cc9e4da0cf774f8e68b9492a5153 Mon Sep 17 00:00:00 2001 From: Nulo Date: Wed, 17 Nov 2021 12:19:42 -0300 Subject: [PATCH] nvim: borrar cmp --- .config/nvim/init.vim | 18 ------------------ .config/nvim/pack/plugins/start/cmp-buffer | 1 - .config/nvim/pack/plugins/start/cmp-nvim-lsp | 1 - .config/nvim/pack/plugins/start/nvim-cmp | 1 - .gitmodules | 9 --------- 5 files changed, 30 deletions(-) delete mode 160000 .config/nvim/pack/plugins/start/cmp-buffer delete mode 160000 .config/nvim/pack/plugins/start/cmp-nvim-lsp delete mode 160000 .config/nvim/pack/plugins/start/nvim-cmp diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim index 7779e9c..2bff1c4 100644 --- a/.config/nvim/init.vim +++ b/.config/nvim/init.vim @@ -15,23 +15,6 @@ autocmd ColorScheme * highlight! Normal guibg=NONE set completeopt=menu,menuone,noselect lua << EOF -local cmp = require'cmp' - -cmp.setup({ - mapping = { - [''] = cmp.mapping.scroll_docs(-4), - [''] = cmp.mapping.scroll_docs(4), - [''] = cmp.mapping.complete(), - [''] = cmp.mapping.close(), - [''] = 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 diff --git a/.config/nvim/pack/plugins/start/cmp-buffer b/.config/nvim/pack/plugins/start/cmp-buffer deleted file mode 160000 index 5dde543..0000000 --- a/.config/nvim/pack/plugins/start/cmp-buffer +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 5dde5430757696be4169ad409210cf5088554ed6 diff --git a/.config/nvim/pack/plugins/start/cmp-nvim-lsp b/.config/nvim/pack/plugins/start/cmp-nvim-lsp deleted file mode 160000 index 246a41c..0000000 --- a/.config/nvim/pack/plugins/start/cmp-nvim-lsp +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 246a41c55668d5f84afcd805ee73b6e419375ae0 diff --git a/.config/nvim/pack/plugins/start/nvim-cmp b/.config/nvim/pack/plugins/start/nvim-cmp deleted file mode 160000 index cc21a61..0000000 --- a/.config/nvim/pack/plugins/start/nvim-cmp +++ /dev/null @@ -1 +0,0 @@ -Subproject commit cc21a61910b89422122cc0c67a8265247bd0db6a diff --git a/.gitmodules b/.gitmodules index 8d24bf2..67f80d7 100644 --- a/.gitmodules +++ b/.gitmodules @@ -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