merge confilt resolved
This commit is contained in:
parent
e91d840f90
commit
ea29d06a91
|
|
@ -4,8 +4,17 @@ local capabilities = require("plugins.configs.lspconfig").capabilities
|
||||||
local lspconfig = require("lspconfig")
|
local lspconfig = require("lspconfig")
|
||||||
|
|
||||||
-- if you just want default config for the servers then put them in a table
|
-- if you just want default config for the servers then put them in a table
|
||||||
local servers =
|
local servers = {
|
||||||
{ "html", "cssls", "tsserver", "clangd", "docker_compose_language_service", "dockerls", "rust_analyzer", "pyright", "grammarly" }
|
"html",
|
||||||
|
"cssls",
|
||||||
|
"tsserver",
|
||||||
|
"clangd",
|
||||||
|
"docker_compose_language_service",
|
||||||
|
"dockerls",
|
||||||
|
"rust_analyzer",
|
||||||
|
"pyright",
|
||||||
|
"grammarly",
|
||||||
|
}
|
||||||
|
|
||||||
for _, lsp in ipairs(servers) do
|
for _, lsp in ipairs(servers) do
|
||||||
lspconfig[lsp].setup({
|
lspconfig[lsp].setup({
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,6 @@ end
|
||||||
local b = null_ls.builtins
|
local b = null_ls.builtins
|
||||||
|
|
||||||
local sources = {
|
local sources = {
|
||||||
|
|
||||||
-- webdev stuff
|
-- webdev stuff
|
||||||
b.formatting.deno_fmt, -- choosed deno for ts/js files cuz its very fast!
|
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.prettier.with { filetypes = { "html", "markdown", "css" } }, -- so prettier works only on these filetypes
|
||||||
|
|
@ -27,7 +26,7 @@ local sources = {
|
||||||
-- method = null_ls.methods.DIAGNOSTICS_ON_SAVE,
|
-- method = null_ls.methods.DIAGNOSTICS_ON_SAVE,
|
||||||
-- }),
|
-- }),
|
||||||
|
|
||||||
b.formatting.rustfmt,
|
b.formatting.rustfmt,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue