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({
|
||||
{ name = 'nvim_lsp' },
|
||||
{ name = 'luasnip' },
|
||||
{ name = 'zsh' },
|
||||
}, {
|
||||
{ name = 'buffer' },
|
||||
{ name = 'spell' }
|
||||
|
@ -99,4 +100,8 @@ if cmp and luasnip then
|
|||
local map = require('my.functions').map
|
||||
map('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
|
||||
|
|
|
@ -63,7 +63,8 @@ require('packer').startup({ function(use)
|
|||
'https://github.com/hrsh7th/cmp-nvim-lua',
|
||||
'https://github.com/uga-rosa/cmp-dictionary',
|
||||
'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