Compare commits
2 commits
2d6cc22df1
...
38b187bbec
| Author | SHA1 | Date | |
|---|---|---|---|
| 38b187bbec | |||
| 5d7ff85338 |
3 changed files with 16 additions and 8 deletions
3
.gitmodules
vendored
3
.gitmodules
vendored
|
|
@ -82,9 +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
|
|
||||||
[submodule "pack/general/start/telescope-fzy-native.nvim"]
|
[submodule "pack/general/start/telescope-fzy-native.nvim"]
|
||||||
path = pack/general/start/telescope-fzy-native.nvim
|
path = pack/general/start/telescope-fzy-native.nvim
|
||||||
url = https://github.com/nvim-telescope/telescope-fzy-native.nvim
|
url = https://github.com/nvim-telescope/telescope-fzy-native.nvim
|
||||||
|
|
|
||||||
20
init.lua
20
init.lua
|
|
@ -242,10 +242,22 @@ for ft, ft_linters in pairs(linters) do
|
||||||
end
|
end
|
||||||
---- LuaSnip
|
---- LuaSnip
|
||||||
require('luasnip.loaders.from_lua').lazy_load()
|
require('luasnip.loaders.from_lua').lazy_load()
|
||||||
cmd [[imap <silent><expr> <Tab> luasnip#expand_or_jumpable() ? '<Plug>luasnip-expand-or-jump' : '<Tab>']]
|
local luasnip = require 'luasnip'
|
||||||
cmd [[inoremap <silent> <S-Tab> <cmd>lua require'luasnip'.jump(-1)<Cr>]]
|
vim.keymap.set({"i", "s"}, "<Tab>", function()
|
||||||
cmd [[snoremap <silent> <Tab> <cmd>lua require('luasnip').jump(1)<Cr>]]
|
if luasnip.expand_or_jumpable() then
|
||||||
cmd [[snoremap <silent> <S-Tab> <cmd>lua require('luasnip').jump(-1)<Cr>]]
|
luasnip.expand_or_jump()
|
||||||
|
else
|
||||||
|
vim.api.nvim_feedkeys(
|
||||||
|
vim.api.nvim_replace_termcodes('<Tab>',true,false,true),
|
||||||
|
'n', -- noremap to avoid infinite recursion
|
||||||
|
true)
|
||||||
|
end
|
||||||
|
end, {silent = true})
|
||||||
|
vim.keymap.set({"i", "s"}, "<S-Tab>", function()
|
||||||
|
if luasnip.jumpable(-1) then
|
||||||
|
luasnip.jump(-1)
|
||||||
|
end
|
||||||
|
end, {silent = true})
|
||||||
---- completion-nvim
|
---- completion-nvim
|
||||||
local cmp = require'cmp'
|
local cmp = require'cmp'
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
Subproject commit d7e40e4cce622eab2316607dbcd8d6039bcb9fe0
|
|
||||||
Loading…
Add table
Reference in a new issue