From 69238a80ef0a257fbf1b82d31065c5d288beaf54 Mon Sep 17 00:00:00 2001 From: PowerUser64 Date: Wed, 27 Jul 2022 02:20:33 -0700 Subject: [PATCH] nvim: fix nvim-cmp path (hopefully for good now?) --- .config/nvim/lua/blake/lsp.lua | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.config/nvim/lua/blake/lsp.lua b/.config/nvim/lua/blake/lsp.lua index 52573b6..5254821 100644 --- a/.config/nvim/lua/blake/lsp.lua +++ b/.config/nvim/lua/blake/lsp.lua @@ -153,7 +153,7 @@ M.cmp = function() formatting = { format = function(entry, vim_item) -- fancy icons and a name of kind - format = require('lspkind').cmp_format({ + require('lspkind').cmp_format({ mode = 'symbol', -- show only symbol annotations maxwidth = 50, -- prevent the popup from showing more than provided characters (e.g 50 will not show more than 50 characters) @@ -200,15 +200,15 @@ M.cmp = function() cmp.setup.cmdline('/', search_config) cmp.setup.cmdline('?', search_config) - -- Use cmdline & path source for ':' (if you enabled `native_menu`, this won't work anymore). - cmp.setup.cmdline(':', { + -- `:` cmdline setup. + cmp.setup.cmdline(':', { mapping = cmp.mapping.preset.cmdline(), sources = cmp.config.sources({ - { name = 'cmdline' } + { name = 'path' } }, { - { name = 'path' } + { name = 'cmdline' } }) - }) + }) end -- <<< -- lspconfig >>>