nvim: fix tmux completion
This commit is contained in:
parent
c1445e28dc
commit
e7f78f287a
1 changed files with 70 additions and 58 deletions
|
@ -35,13 +35,24 @@ return require('packer').startup(function()
|
||||||
-- local cmp = require('hrsh7th/nvim-cmp')
|
-- local cmp = require('hrsh7th/nvim-cmp')
|
||||||
|
|
||||||
cmp.setup({
|
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 = {
|
snippet = {
|
||||||
-- REQUIRED - you must specify a snippet engine
|
|
||||||
expand = function(args)
|
expand = function(args)
|
||||||
vim.fn["vsnip#anonymous"](args.body) -- For `vsnip` users.
|
require('luasnip').lsp_expand(args.body)
|
||||||
-- 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.
|
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -87,6 +98,7 @@ return require('packer').startup(function()
|
||||||
name = 'tmux',
|
name = 'tmux',
|
||||||
priority = 2,
|
priority = 2,
|
||||||
option = {
|
option = {
|
||||||
|
all_panes = true,
|
||||||
trigger_characters = {},
|
trigger_characters = {},
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Reference in a new issue