1
0
Fork 0

nvim: add completions from Zsh

This commit is contained in:
tastytea 2022-09-09 06:13:49 +02:00
parent af3fb23c25
commit eb786ea5a8
Signed by: tastytea
SSH Key Fingerprint: SHA256:FBkvrOlhq5use1XEttyUGT4bUTDVA1ar9SgIc9P03cM
2 changed files with 7 additions and 1 deletions

View File

@ -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

View File

@ -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'
}
}