fix(nvim) improve the config of some language servers
This commit is contained in:
parent
4600e63f85
commit
fe99f1126a
3 changed files with 3 additions and 11 deletions
|
@ -3,5 +3,4 @@ local common = require('lsp.common')
|
|||
require('lspconfig').ansiblels.setup {
|
||||
capabilities = common.cap,
|
||||
on_attach = common.attach,
|
||||
filetypes = { "yaml.ansible" }
|
||||
}
|
||||
|
|
|
@ -38,16 +38,6 @@ local fish = {
|
|||
}
|
||||
}
|
||||
|
||||
local golangcilint = {
|
||||
lintCommand = "golangci-lintw run --print-issued-lines=false",
|
||||
lintSource = "golangci-lint",
|
||||
lintIgnoreExitCode = true,
|
||||
lintFormats = {
|
||||
'%f:%l:%c: %m',
|
||||
'%f:%l: %m',
|
||||
},
|
||||
}
|
||||
|
||||
local stylelint = {
|
||||
lintCommand = "stylelint",
|
||||
lintSource = "stylelint",
|
||||
|
|
|
@ -3,4 +3,7 @@ local common = require('lsp.common')
|
|||
require('lspconfig').golangci_lint_ls.setup {
|
||||
capabilities = common.cap,
|
||||
on_attach = common.attach,
|
||||
init_options = {
|
||||
command = { "golangci-lint", "run", "--out-format", "json" }
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue