Remove vim and add nvim config
This commit is contained in:
parent
92b6c017d1
commit
e06ce1a49a
26 changed files with 665 additions and 66 deletions
44
nvim/lua/plugins/sonarlint.lua
Normal file
44
nvim/lua/plugins/sonarlint.lua
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
return {
|
||||
{
|
||||
url = "https://gitlab.com/schrieveslaach/sonarlint.nvim",
|
||||
lazy = true,
|
||||
ft = {"java", "go", "html", "python"},
|
||||
dependencies = {
|
||||
"williamboman/mason.nvim"
|
||||
},
|
||||
config = function()
|
||||
require('sonarlint').setup({
|
||||
server = {
|
||||
cmd = {
|
||||
'sonarlint-language-server',
|
||||
'-stdio',
|
||||
'-analyzers',
|
||||
vim.fn.expand("$MASON/share/sonarlint-analyzers/sonarjava.jar"),
|
||||
vim.fn.expand("$MASON/share/sonarlint-analyzers/sonargo.jar"),
|
||||
vim.fn.expand("$MASON/share/sonarlint-analyzers/sonarhtml.jar"),
|
||||
vim.fn.expand("$MASON/share/sonarlint-analyzers/sonarpython.jar"),
|
||||
},
|
||||
settings = {
|
||||
sonarlint = {
|
||||
test = "test",
|
||||
disableTelemetry = true,
|
||||
focusOnNewCode = true,
|
||||
showAnalyzerLogs = true,
|
||||
rules = {
|
||||
['java:S1192'] = { level = 'off' },
|
||||
['go:S1192'] = { level = 'off' },
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
filetypes = {
|
||||
'java',
|
||||
'go',
|
||||
'html',
|
||||
'python',
|
||||
},
|
||||
})
|
||||
end
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue