task: Adjusted lsp

This commit is contained in:
Viorel Binciu 2025-01-15 09:36:27 +02:00
parent c4952f9837
commit 2c65d3d11f
No known key found for this signature in database
GPG key ID: AC875EA6A34E7770

View file

@ -14,6 +14,9 @@ return {
"dgagn/diagflow.nvim", "dgagn/diagflow.nvim",
opts = { scope = "line" }, opts = { scope = "line" },
}, },
{
"chrisbra/csv.vim",
},
{ -- Merge lines { -- Merge lines
"Wansmer/treesj", "Wansmer/treesj",
keys = { keys = {
@ -51,8 +54,8 @@ return {
ui = { border = "rounded" }, ui = { border = "rounded" },
ensure_installed = { ensure_installed = {
"bash-language-server", "bash-language-server",
"prettierd",
"css-lsp", "css-lsp",
"ruff-lsp",
"pyright", "pyright",
"autopep8", "autopep8",
"shellcheck", "shellcheck",
@ -64,19 +67,17 @@ return {
ft = { "python", "typescript", "typescriptreact", "typescript.tsx" }, ft = { "python", "typescript", "typescriptreact", "typescript.tsx" },
dependencies = { dependencies = {
"mfussenegger/nvim-jdtls", "mfussenegger/nvim-jdtls",
"williamboman/mason.nvim",
}, },
config = function() config = function()
require("sonarlint").setup({ require("sonarlint").setup({
server = { server = {
cmd = { cmd = {
"sonarlint-language-server", "java",
"-cp",
"-jar",
-- Ensure that sonarlint-language-server uses stdio channel -- Ensure that sonarlint-language-server uses stdio channel
"-stdio", "-stdio",
"-analyzers", "-analyzers",
-- paths to the analyzers you need, using those for python and java in this example
vim.fn.expand("$MASON/share/sonarlint-analyzers/sonarpython.jar"),
vim.fn.expand("$MASON/share/sonarlint-analyzers/sonarjs.jar"),
}, },
}, },
filetypes = { filetypes = {
@ -88,4 +89,13 @@ return {
}) })
end, end,
}, },
{
"MeanderingProgrammer/markdown.nvim",
main = "render-markdown",
opts = {},
name = "render-markdown", -- Only needed if you have another plugin named markdown.nvim
-- dependencies = { 'nvim-treesitter/nvim-treesitter', 'echasnovski/mini.nvim' }, -- if you use the mini.nvim suite
-- dependencies = { 'nvim-treesitter/nvim-treesitter', 'echasnovski/mini.icons' }, -- if you use standalone mini plugins
dependencies = { "nvim-treesitter/nvim-treesitter", "nvim-tree/nvim-web-devicons" }, -- if you prefer nvim-web-devicons
},
} }