LuaSnip: enable
This commit is contained in:
parent
779473cbaa
commit
f2ac910c00
4 changed files with 10 additions and 5 deletions
6
.gitmodules
vendored
6
.gitmodules
vendored
|
|
@ -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
|
||||||
|
|
|
||||||
7
init.lua
7
init.lua
|
|
@ -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'
|
||||||
|
|
||||||
|
|
|
||||||
1
pack/general/start/LuaSnip-snippets.nvim
Submodule
1
pack/general/start/LuaSnip-snippets.nvim
Submodule
|
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit d7e40e4cce622eab2316607dbcd8d6039bcb9fe0
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
Subproject commit 8d91ba2dc2421a54981115f61b914974f938fa77
|
|
||||||
Loading…
Add table
Reference in a new issue