From d74484058b0fbb79be6a6da016458fc8ac97a9ed Mon Sep 17 00:00:00 2001 From: alemi Date: Mon, 19 Sep 2022 11:54:00 +0200 Subject: [PATCH] fix: disabled (for now) / completion (breaks : completion) --- lua/plugins.lua | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/lua/plugins.lua b/lua/plugins.lua index 5010c93..d213f20 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -211,20 +211,20 @@ local init_fn = function(use) { name = 'dap' }, }, }) - cmp.setup.cmdline('/', { - formatting = { - format = function(entry, vim_item) - local kind = require("lspkind").cmp_format({ mode = "symbol" })(entry, vim_item) - kind.kind = " " .. kind.kind .. " " - return kind - end, - }, - mapping = cmp.mapping.preset.cmdline(), - sources = cmp.config.sources({ - { name = 'nvim_lsp_document_symbol' }, - { name = 'buffer', keyword_length = 3 }, - }) - }) + -- cmp.setup.cmdline('/', { + -- formatting = { + -- format = function(entry, vim_item) + -- local kind = require("lspkind").cmp_format({ mode = "symbol" })(entry, vim_item) + -- kind.kind = " " .. kind.kind .. " " + -- return kind + -- end, + -- }, + -- mapping = cmp.mapping.preset.cmdline(), + -- sources = cmp.config.sources({ + -- { name = 'nvim_lsp_document_symbol' }, + -- { name = 'buffer', keyword_length = 3 }, + -- }) + -- }) -- Setup lspconfig. capabilities = require('cmp_nvim_lsp').update_capabilities(vim.lsp.protocol.make_client_capabilities())