nvim: fix tmux completion

This commit is contained in:
Daniel Lundin 2022-01-09 21:38:00 +01:00
parent c1445e28dc
commit e7f78f287a

View file

@ -35,13 +35,24 @@ return require('packer').startup(function()
-- local cmp = require('hrsh7th/nvim-cmp')
cmp.setup({
formatting = {
format = require('lspkind').cmp_format({
with_text = true,
menu = {
buffer = "[Buffer]",
tmux = "[Tmux]",
luasnip = "[LuaSnip]",
nvim_lsp = "[LSP]",
nvim_lua = "[Lua]",
path = "[Path]",
},
}),
},
snippet = {
-- REQUIRED - you must specify a snippet engine
expand = function(args)
vim.fn["vsnip#anonymous"](args.body) -- For `vsnip` users.
-- require('luasnip').lsp_expand(args.body) -- For `luasnip` users.
-- require('snippy').expand_snippet(args.body) -- For `snippy` users.
-- vim.fn["UltiSnips#Anon"](args.body) -- For `ultisnips` users.
require('luasnip').lsp_expand(args.body)
end,
},
@ -87,6 +98,7 @@ return require('packer').startup(function()
name = 'tmux',
priority = 2,
option = {
all_panes = true,
trigger_characters = {},
}
},