Cleanup
This commit is contained in:
parent
0eaa505631
commit
518cee03cd
8 changed files with 103 additions and 113 deletions
|
@ -1,6 +1,6 @@
|
||||||
return {
|
return {
|
||||||
'm4xshen/autoclose.nvim',
|
"m4xshen/autoclose.nvim",
|
||||||
config = function()
|
config = function()
|
||||||
require("autoclose").setup()
|
require("autoclose").setup()
|
||||||
end
|
end,
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,12 +6,10 @@ LSP.mason_requirements = {
|
||||||
"sqlls",
|
"sqlls",
|
||||||
"lemminx",
|
"lemminx",
|
||||||
"yamlls",
|
"yamlls",
|
||||||
"marksman"
|
"marksman",
|
||||||
}
|
}
|
||||||
|
|
||||||
LSP.plugin_info = {
|
LSP.plugin_info = {}
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
function LSP.setup(lspconfig, capabilities)
|
function LSP.setup(lspconfig, capabilities)
|
||||||
local config = { capabilities = capabilities }
|
local config = { capabilities = capabilities }
|
||||||
|
@ -26,7 +24,7 @@ end
|
||||||
function LSP.formatter(null_ls)
|
function LSP.formatter(null_ls)
|
||||||
return {
|
return {
|
||||||
null_ls.builtins.formatting.prettier.with({
|
null_ls.builtins.formatting.prettier.with({
|
||||||
command = "prettierd"
|
command = "prettierd",
|
||||||
}),
|
}),
|
||||||
null_ls.builtins.diagnostics.spectral,
|
null_ls.builtins.diagnostics.spectral,
|
||||||
null_ls.builtins.code_actions.refactoring,
|
null_ls.builtins.code_actions.refactoring,
|
||||||
|
@ -38,7 +36,7 @@ function LSP.formatter(null_ls)
|
||||||
null_ls.builtins.diagnostics.codespell,
|
null_ls.builtins.diagnostics.codespell,
|
||||||
null_ls.builtins.diagnostics.dotenv_linter,
|
null_ls.builtins.diagnostics.dotenv_linter,
|
||||||
null_ls.builtins.diagnostics.trail_space,
|
null_ls.builtins.diagnostics.trail_space,
|
||||||
null_ls.builtins.diagnostics.vacuum
|
null_ls.builtins.diagnostics.vacuum,
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -1,12 +1,10 @@
|
||||||
local LSP = {}
|
local LSP = {}
|
||||||
|
|
||||||
LSP.mason_requirements = {
|
LSP.mason_requirements = {
|
||||||
"gopls"
|
"gopls",
|
||||||
}
|
}
|
||||||
|
|
||||||
LSP.plugin_info = {
|
LSP.plugin_info = {}
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
function LSP.setup(lspconfig, capabilities)
|
function LSP.setup(lspconfig, capabilities)
|
||||||
lspconfig.gopls.setup({ capabilities = capabilities })
|
lspconfig.gopls.setup({ capabilities = capabilities })
|
||||||
|
@ -18,7 +16,7 @@ function LSP.formatter(null_ls)
|
||||||
null_ls.builtins.code_actions.gomodifytags,
|
null_ls.builtins.code_actions.gomodifytags,
|
||||||
null_ls.builtins.code_actions.impl,
|
null_ls.builtins.code_actions.impl,
|
||||||
null_ls.builtins.diagnostics.golangci_lint,
|
null_ls.builtins.diagnostics.golangci_lint,
|
||||||
null_ls.builtins.diagnostics.staticcheck
|
null_ls.builtins.diagnostics.staticcheck,
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -1,12 +1,10 @@
|
||||||
local LSP = {}
|
local LSP = {}
|
||||||
|
|
||||||
LSP.mason_requirements = {
|
LSP.mason_requirements = {
|
||||||
"lua_ls"
|
"lua_ls",
|
||||||
}
|
}
|
||||||
|
|
||||||
LSP.plugin_info = {
|
LSP.plugin_info = {}
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
function LSP.setup(lspconfig, capabilities)
|
function LSP.setup(lspconfig, capabilities)
|
||||||
lspconfig.lua_ls.setup({
|
lspconfig.lua_ls.setup({
|
||||||
|
@ -15,16 +13,16 @@ function LSP.setup(lspconfig, capabilities)
|
||||||
Lua = {
|
Lua = {
|
||||||
diagnostics = {
|
diagnostics = {
|
||||||
globals = { "vim" },
|
globals = { "vim" },
|
||||||
}
|
},
|
||||||
}
|
},
|
||||||
}
|
},
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
function LSP.formatter(null_ls)
|
function LSP.formatter(null_ls)
|
||||||
return {
|
return {
|
||||||
null_ls.builtins.formatting.stylua,
|
null_ls.builtins.formatting.stylua,
|
||||||
null_ls.builtins.diagnostics.selene
|
null_ls.builtins.diagnostics.selene,
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -2,12 +2,10 @@ local LSP = {}
|
||||||
|
|
||||||
LSP.mason_requirements = {
|
LSP.mason_requirements = {
|
||||||
"phpactor",
|
"phpactor",
|
||||||
"stimulus_ls"
|
"stimulus_ls",
|
||||||
}
|
}
|
||||||
|
|
||||||
LSP.plugin_info = {
|
LSP.plugin_info = {}
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
function LSP.setup(lspconfig, capabilities)
|
function LSP.setup(lspconfig, capabilities)
|
||||||
local config = { capabilities = capabilities }
|
local config = { capabilities = capabilities }
|
||||||
|
@ -20,7 +18,7 @@ function LSP.formatter(null_ls)
|
||||||
null_ls.builtins.diagnostics.phpstan,
|
null_ls.builtins.diagnostics.phpstan,
|
||||||
null_ls.builtins.formatting.phpcsfixer.with({
|
null_ls.builtins.formatting.phpcsfixer.with({
|
||||||
prefer_local = "vendor/bin/php-cs-fixer",
|
prefer_local = "vendor/bin/php-cs-fixer",
|
||||||
args = { "fix", "--allow-risky=yes", "$FILENAME" }
|
args = { "fix", "--allow-risky=yes", "$FILENAME" },
|
||||||
}),
|
}),
|
||||||
null_ls.builtins.diagnostics.phpcs,
|
null_ls.builtins.diagnostics.phpcs,
|
||||||
null_ls.builtins.diagnostics.twigcs,
|
null_ls.builtins.diagnostics.twigcs,
|
||||||
|
|
|
@ -11,9 +11,7 @@ LSP.mason_requirements = {
|
||||||
"eslint",
|
"eslint",
|
||||||
}
|
}
|
||||||
|
|
||||||
LSP.plugin_info = {
|
LSP.plugin_info = {}
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
function LSP.setup(lspconfig, capabilities)
|
function LSP.setup(lspconfig, capabilities)
|
||||||
local config = { capabilities = capabilities }
|
local config = { capabilities = capabilities }
|
||||||
|
@ -30,7 +28,7 @@ end
|
||||||
function LSP.formatter(null_ls)
|
function LSP.formatter(null_ls)
|
||||||
return {
|
return {
|
||||||
require("none-ls.formatting.eslint_d"),
|
require("none-ls.formatting.eslint_d"),
|
||||||
null_ls.builtins.diagnostics.stylelint
|
null_ls.builtins.diagnostics.stylelint,
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue