mirror of
https://github.com/jdhao/nvim-config.git
synced 2025-06-08 14:14:33 +02:00
working config for cmp-omni and vimtex
This commit is contained in:
@@ -1,19 +1,2 @@
|
||||
local cmp = require('cmp')
|
||||
cmp.setup.buffer {
|
||||
formatting = {
|
||||
format = function(entry, vim_item)
|
||||
vim_item.menu = ({
|
||||
omni = (vim.inspect(vim_item.menu):gsub('%"', "")),
|
||||
buffer = "[Buffer]",
|
||||
})[entry.source.name]
|
||||
return vim_item
|
||||
end,
|
||||
},
|
||||
sources = cmp.config.sources({
|
||||
{ name = 'buffer' },
|
||||
{ name = 'omni',},
|
||||
})
|
||||
}
|
||||
|
||||
vim.o.textwidth = 120
|
||||
vim.o.wrap = true
|
||||
|
||||
Reference in New Issue
Block a user