making sure it works
This commit is contained in:
parent
4cbe44f188
commit
eca15bd1ca
|
@ -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 = {
|
||||
['<C-p>'] = 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
|
||||
|
|
Loading…
Reference in a new issue