fix(nvim) improve the config of some language servers

This commit is contained in:
Bruno Carlin 2022-03-30 10:43:09 +02:00
parent 4600e63f85
commit fe99f1126a
3 changed files with 3 additions and 11 deletions

View file

@ -3,5 +3,4 @@ local common = require('lsp.common')
require('lspconfig').ansiblels.setup {
capabilities = common.cap,
on_attach = common.attach,
filetypes = { "yaml.ansible" }
}

View file

@ -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",

View file

@ -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" }
}
}