Compare commits
No commits in common. "c872ea60c68faa504650c7e91ce2b77f7cf0254f" and "d178c3286ba105e14c2aacc1ae47540ea4aafc6c" have entirely different histories.
c872ea60c6
...
d178c3286b
4 changed files with 8 additions and 13 deletions
8
.gitmodules
vendored
8
.gitmodules
vendored
|
|
@ -49,7 +49,7 @@
|
|||
[submodule "pack/general/start/LuaSnip"]
|
||||
path = pack/general/start/LuaSnip
|
||||
url = https://github.com/L3MON4D3/LuaSnip
|
||||
[submodule "pack/general/start/cmp_luasnip"]
|
||||
[submodule "pack/general/start/cmd_luasnip"]
|
||||
path = pack/general/start/cmp_luasnip
|
||||
url = https://github.com/saadparwaiz1/cmp_luasnip
|
||||
[submodule "pack/general/start/cmp-buffer"]
|
||||
|
|
@ -58,6 +58,9 @@
|
|||
[submodule "pack/general/start/cmp-nvim-lsp"]
|
||||
path = pack/general/start/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"]
|
||||
path = pack/general/start/Comment.nvim
|
||||
url = https://github.com/numToStr/Comment.nvim
|
||||
|
|
@ -82,6 +85,3 @@
|
|||
[submodule "pack/general/start/nvim-lint"]
|
||||
path = pack/general/start/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
|
||||
|
|
|
|||
11
init.lua
11
init.lua
|
|
@ -139,7 +139,6 @@ end
|
|||
-- map buffer local keybindings when the language server attaches
|
||||
local servers = {
|
||||
clangd = {},
|
||||
eslint = {},
|
||||
gopls = {},
|
||||
jsonls = {},
|
||||
kotlin_language_server = {},
|
||||
|
|
@ -180,7 +179,7 @@ lint.linters.clippy = {
|
|||
stdin = false,
|
||||
append_fname = true,
|
||||
args = {},
|
||||
stream = 'stdout',
|
||||
stream = nil, -- ('stdout' | 'stderr' | 'both') configure the stream to which the linter outputs the linting result.
|
||||
ignore_exitcode = false,
|
||||
env = nil,
|
||||
parser = require('lint.parser').from_errorformat(clippy_format)
|
||||
|
|
@ -192,6 +191,7 @@ linters = {
|
|||
python = {'flake8'},
|
||||
rust = {'clippy'},
|
||||
yaml = {'yamllint'},
|
||||
zsh = {'shellcheck'},
|
||||
}
|
||||
-- set linters --
|
||||
lint.linters_by_ft = linters
|
||||
|
|
@ -243,12 +243,7 @@ for ft, ft_linters in pairs(linters) do
|
|||
)
|
||||
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
|
||||
local cmp = require'cmp'
|
||||
|
||||
|
|
|
|||
|
|
@ -1 +0,0 @@
|
|||
Subproject commit d7e40e4cce622eab2316607dbcd8d6039bcb9fe0
|
||||
1
pack/general/start/friendly-snippets
Submodule
1
pack/general/start/friendly-snippets
Submodule
|
|
@ -0,0 +1 @@
|
|||
Subproject commit 8d91ba2dc2421a54981115f61b914974f938fa77
|
||||
Loading…
Add table
Reference in a new issue