Correct LSP setup + DAP + ...

This commit is contained in:
2024-08-09 22:31:53 +02:00
parent 0066e28c8f
commit 6fa41890ab
8 changed files with 600 additions and 170 deletions
+1 -3
View File
@@ -4,6 +4,7 @@ local capabilities = require("plugins.configs.lspconfig").capabilities
local lspconfig = require "lspconfig"
-- if you just want default config for the servers then put them in a table
-- local servers = { "html", "cssls", "tsserver", "clangd", "salt_ls", "pyright", "jedi_language_server" }
local servers = { "html", "cssls", "tsserver", "clangd", "salt_ls" }
for _, lsp in ipairs(servers) do
@@ -12,6 +13,3 @@ for _, lsp in ipairs(servers) do
capabilities = capabilities,
}
end
--
-- lspconfig.pyright.setup { blabla}
+5 -2
View File
@@ -1,5 +1,8 @@
local present, null_ls = pcall(require, "null-ls")
if true then
return
end
if not present then
return
end
@@ -9,8 +12,8 @@ local b = null_ls.builtins
local sources = {
-- webdev stuff
b.formatting.deno_fmt, -- choosed deno for ts/js files cuz its very fast!
b.formatting.prettier.with { filetypes = { "html", "markdown", "css" } }, -- so prettier works only on these filetypes
b.formatting.deno_fmt, -- choosed deno for ts/js files cuz its very fast!
b.formatting.prettier.with { filetypes = { "html", "markdown", "css", "js" }, extra_args = { "--tab-width 4" } }, -- so prettier works only on these filetypes
-- Lua
b.formatting.stylua,