Correct LSP setup + DAP + ...
This commit is contained in:
@@ -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}
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user