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
+4 -4
View File
@@ -1,7 +1,7 @@
require("base") require("base")
if not vim.g.vscode then if (not vim.g.vscode) and os.getenv("NO_PLUGINS") == nil then
require("specifics") require("specifics")
require("plugins") require("plugins")
require("buffer_tools").init() require("buffer_tools").init()
end end
+14 -3
View File
@@ -247,9 +247,9 @@ function M.null_ls()
local null_ls = require("null-ls") local null_ls = require("null-ls")
local config = lsp_config_defaults() local config = lsp_config_defaults()
local sqlfluff_args = { --local sqlfluff_args = {
extra_args = { "--dialect", "postgres" }, -- extra_args = { "--dialect", "postgres" },
} --}
-- ORDER IN TABLE DETERMINES EXECUTION ORDER -- ORDER IN TABLE DETERMINES EXECUTION ORDER
local sources = { local sources = {
@@ -419,6 +419,17 @@ function M.lsp_zero()
filetypes = { "html", "htmldjango" }, 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 -- (Optional) Configure lua language server for neovim
lsp.nvim_workspace() lsp.nvim_workspace()
+3
View File
@@ -100,4 +100,7 @@ require("packer").startup(function(use)
-- ZIG -- ZIG
use("ziglang/zig.vim") use("ziglang/zig.vim")
-- C#
use("jlcrochet/vim-razor")
end) end)
+1
View File
@@ -47,4 +47,5 @@
"endif" "endif"
"else" "else"
"empty" "empty"
"elif"
] @keyword ] @keyword