feat(terraform,yaml,json,prettier): Added the support in null-ls and lsp

pull/2788/head
n-s-s-p-k 6 months ago
parent 5f4b92202b
commit 34f2efd7b1

@ -4,7 +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", "pyright" , "yamlls", "gopls" }
local servers = { "html", "cssls", "tsserver", "clangd", "pyright" , "yamlls", "gopls" , "bashls", "terraformls"}
for _, lsp in ipairs(servers) do
lspconfig[lsp].setup {

@ -8,7 +8,7 @@ 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.prettier.with { filetypes = { "html", "markdown", "css", "yaml", "json"} }, -- so prettier works only on these filetypes
-- Lua
b.formatting.stylua,
@ -38,6 +38,12 @@ local sources = {
end
end,
-- Shell
b.formatting.shfmt,
b.diagnostics.shellcheck.with { diagnostics_format = "#{m} [#{c}]" },
-- terraform
b.formatting.terraform_fmt,
}
null_ls.setup {

@ -79,6 +79,7 @@ local plugins = {
lazy = false, -- important!
config = function()
require("projectmgr").setup({
-- for syncing the project
-- autogit = {
-- enabled = true,
-- command = "git pull --ff-only > .git/fastforward.log 2>&1",

Loading…
Cancel
Save