From eca15bd1ca51a7aa57571d2b05896bb0d8244b2d Mon Sep 17 00:00:00 2001 From: Anish L Date: Wed, 15 Jun 2022 19:34:30 +1000 Subject: [PATCH] making sure it works --- users/profiles/nvim/default.nix | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/users/profiles/nvim/default.nix b/users/profiles/nvim/default.nix index 389d1344..1a63ef11 100644 --- a/users/profiles/nvim/default.nix +++ b/users/profiles/nvim/default.nix @@ -347,6 +347,7 @@ in end local luasnip = require("luasnip") + local lspkind = require("lspkind") local cmp = require('cmp') local cmp_autopairs = require('nvim-autopairs.completion.cmp') local t = function(str) @@ -359,14 +360,8 @@ in cmp.setup { formatting = { format = lspkind.cmp_format({ - mode = 'symbol_text', -- 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) - - -- The function below will be called before any actual modifications from lspkind - -- so that you can provide more controls on popup customization. (See [#30](https://github.com/onsails/lspkind-nvim/pull/30)) - before = function (entry, vim_item) - ... - return vim_item + mode = 'symbol_text', + maxwidth = 50, end -- old format -- format = function(entry, vim_item) @@ -384,6 +379,7 @@ in -- })[entry.source.name] -- return vim_item -- end + }) }, mapping = { [''] = cmp.mapping.select_prev_item(), @@ -535,7 +531,7 @@ in -- auto session require('auto-session').setup { log_level = 'info', - auto_session_suppress_dirs = {'~/', '~/kitaab/vimwiki'} + auto_session_suppress_dirs = {'~/'} } vim.o.sessionoptions="blank,buffers,curdir,folds,help,tabpages,winsize,winpos,terminal" EOF