nvim: add completions from Zsh
This commit is contained in:
parent
af3fb23c25
commit
eb786ea5a8
|
@ -43,6 +43,7 @@ if cmp and luasnip then
|
||||||
sources = cmp.config.sources({
|
sources = cmp.config.sources({
|
||||||
{ name = 'nvim_lsp' },
|
{ name = 'nvim_lsp' },
|
||||||
{ name = 'luasnip' },
|
{ name = 'luasnip' },
|
||||||
|
{ name = 'zsh' },
|
||||||
}, {
|
}, {
|
||||||
{ name = 'buffer' },
|
{ name = 'buffer' },
|
||||||
{ name = 'spell' }
|
{ name = 'spell' }
|
||||||
|
@ -99,4 +100,8 @@ if cmp and luasnip then
|
||||||
local map = require('my.functions').map
|
local map = require('my.functions').map
|
||||||
map('s', '<Tab>', function() luasnip.jump(1) end)
|
map('s', '<Tab>', function() luasnip.jump(1) end)
|
||||||
map('s', '<S-Tab>', function() luasnip.jump(-1) end)
|
map('s', '<S-Tab>', function() luasnip.jump(-1) end)
|
||||||
|
|
||||||
|
require('cmp_zsh').setup({
|
||||||
|
filetypes = { 'zsh', 'bash', 'sh' }
|
||||||
|
})
|
||||||
end
|
end
|
||||||
|
|
|
@ -63,7 +63,8 @@ require('packer').startup({ function(use)
|
||||||
'https://github.com/hrsh7th/cmp-nvim-lua',
|
'https://github.com/hrsh7th/cmp-nvim-lua',
|
||||||
'https://github.com/uga-rosa/cmp-dictionary',
|
'https://github.com/uga-rosa/cmp-dictionary',
|
||||||
'https://github.com/f3fora/cmp-spell',
|
'https://github.com/f3fora/cmp-spell',
|
||||||
'https://github.com/hrsh7th/cmp-nvim-lsp-document-symbol'
|
'https://github.com/hrsh7th/cmp-nvim-lsp-document-symbol',
|
||||||
|
'https://github.com/tamago324/cmp-zsh'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user