diff options
| author | jdhao <jdhao@hotmail.com> | 2022-03-15 20:25:30 +0800 |
|---|---|---|
| committer | jdhao <jdhao@hotmail.com> | 2022-03-15 20:25:30 +0800 |
| commit | 4dd1350f258d32d125aede625bf884369fce6007 (patch) | |
| tree | 7792c85bfe845efd8bdc5398ff811104c837b4dc /lua/config | |
| parent | 311768ce72f524e543953d0174c76539e730baa8 (diff) | |
working config for cmp-omni and vimtex
Diffstat (limited to 'lua/config')
| -rw-r--r-- | lua/config/nvim-cmp.lua | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lua/config/nvim-cmp.lua b/lua/config/nvim-cmp.lua index e9f5781..c4547dc 100644 --- a/lua/config/nvim-cmp.lua +++ b/lua/config/nvim-cmp.lua @@ -35,6 +35,7 @@ cmp.setup({ { name = 'nvim_lua' }, -- for nvim lua function { name = 'path' }, -- for path completion { name = 'buffer', keyword_length = 4 }, -- for buffer word completion + { name = 'omni' }, { name = 'emoji', insert = true, } -- emoji completion }, completion = { @@ -47,14 +48,15 @@ cmp.setup({ formatting = { format = lspkind.cmp_format({ mode = "symbol_text", - menu = { + menu = ({ nvim_lsp = "[LSP]", ultisnips = "[US]", nvim_lua = "[Lua]", path = "[Path]", buffer = "[Buffer]", emoji = "[Emoji]", - }, + omni = "[Omni]", + }), }), }, }) |
