idk too long ago

This commit is contained in:
2024-03-01 14:03:32 -06:00
parent c4fd19cfed
commit 461378fb26
4 changed files with 22 additions and 7 deletions
+14 -3
View File
@@ -247,9 +247,9 @@ function M.null_ls()
local null_ls = require("null-ls")
local config = lsp_config_defaults()
local sqlfluff_args = {
extra_args = { "--dialect", "postgres" },
}
--local sqlfluff_args = {
-- extra_args = { "--dialect", "postgres" },
--}
-- ORDER IN TABLE DETERMINES EXECUTION ORDER
local sources = {
@@ -419,6 +419,17 @@ function M.lsp_zero()
filetypes = { "html", "htmldjango" },
})
lsp.on_attach(function(client, bufnr)
if client.name == "svelte" then
vim.api.nvim_create_autocmd("BufWritePost", {
pattern = { "*.js", "*.ts" },
callback = function(ctx)
client.notify("$/onDidChangeTsOrJsFile", { uri = ctx.file })
end,
})
end
end)
-- (Optional) Configure lua language server for neovim
lsp.nvim_workspace()