1
0
Fork 0

LuaSnip: enable

This commit is contained in:
Felipe 2023-04-12 20:35:03 -04:00
parent 779473cbaa
commit f2ac910c00
Signed by: pitbuster
SSH key fingerprint: SHA256:OM3HeVSA96adfy2Gi8OhZkQBY67P88LoJUwkeVoTArQ
4 changed files with 10 additions and 5 deletions

6
.gitmodules vendored
View file

@ -58,9 +58,6 @@
[submodule "pack/general/start/cmp-nvim-lsp"] [submodule "pack/general/start/cmp-nvim-lsp"]
path = pack/general/start/cmp-nvim-lsp path = pack/general/start/cmp-nvim-lsp
url = https://github.com/hrsh7th/cmp-nvim-lsp url = https://github.com/hrsh7th/cmp-nvim-lsp
[submodule "pack/general/start/friendly-snippets"]
path = pack/general/start/friendly-snippets
url = https://github.com/rafamadriz/friendly-snippets
[submodule "pack/general/start/Comment.nvim"] [submodule "pack/general/start/Comment.nvim"]
path = pack/general/start/Comment.nvim path = pack/general/start/Comment.nvim
url = https://github.com/numToStr/Comment.nvim url = https://github.com/numToStr/Comment.nvim
@ -85,3 +82,6 @@
[submodule "pack/general/start/nvim-lint"] [submodule "pack/general/start/nvim-lint"]
path = pack/general/start/nvim-lint path = pack/general/start/nvim-lint
url = https://github.com/mfussenegger/nvim-lint url = https://github.com/mfussenegger/nvim-lint
[submodule "pack/general/start/LuaSnip-snippets.nvim"]
path = pack/general/start/LuaSnip-snippets.nvim
url = https://github.com/molleweide/LuaSnip-snippets.nvim

View file

@ -242,7 +242,12 @@ for ft, ft_linters in pairs(linters) do
) )
end end
end end
---- LuaSnip
require('luasnip.loaders.from_lua').lazy_load()
cmd [[imap <silent><expr> <Tab> luasnip#expand_or_jumpable() ? '<Plug>luasnip-expand-or-jump' : '<Tab>']]
cmd [[inoremap <silent> <S-Tab> <cmd>lua require'luasnip'.jump(-1)<Cr>]]
cmd [[snoremap <silent> <Tab> <cmd>lua require('luasnip').jump(1)<Cr>]]
cmd [[snoremap <silent> <S-Tab> <cmd>lua require('luasnip').jump(-1)<Cr>]]
---- completion-nvim ---- completion-nvim
local cmp = require'cmp' local cmp = require'cmp'

@ -0,0 +1 @@
Subproject commit d7e40e4cce622eab2316607dbcd8d6039bcb9fe0

@ -1 +0,0 @@
Subproject commit 8d91ba2dc2421a54981115f61b914974f938fa77