making sure it works

This commit is contained in:
Anish L 2022-06-15 19:34:30 +10:00
parent 4cbe44f188
commit eca15bd1ca

View file

@ -347,6 +347,7 @@ in
end end
local luasnip = require("luasnip") local luasnip = require("luasnip")
local lspkind = require("lspkind")
local cmp = require('cmp') local cmp = require('cmp')
local cmp_autopairs = require('nvim-autopairs.completion.cmp') local cmp_autopairs = require('nvim-autopairs.completion.cmp')
local t = function(str) local t = function(str)
@ -359,14 +360,8 @@ in
cmp.setup { cmp.setup {
formatting = { formatting = {
format = lspkind.cmp_format({ format = lspkind.cmp_format({
mode = 'symbol_text', -- show only symbol annotations mode = 'symbol_text',
maxwidth = 50, -- prevent the popup from showing more than provided characters (e.g 50 will not show more than 50 characters) maxwidth = 50,
-- 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
end end
-- old format -- old format
-- format = function(entry, vim_item) -- format = function(entry, vim_item)
@ -384,6 +379,7 @@ in
-- })[entry.source.name] -- })[entry.source.name]
-- return vim_item -- return vim_item
-- end -- end
})
}, },
mapping = { mapping = {
['<C-p>'] = cmp.mapping.select_prev_item(), ['<C-p>'] = cmp.mapping.select_prev_item(),
@ -535,7 +531,7 @@ in
-- auto session -- auto session
require('auto-session').setup { require('auto-session').setup {
log_level = 'info', 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" vim.o.sessionoptions="blank,buffers,curdir,folds,help,tabpages,winsize,winpos,terminal"
EOF EOF