idk too long ago
This commit is contained in:
@@ -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
@@ -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()
|
||||||
|
|
||||||
|
|||||||
@@ -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)
|
||||||
|
|||||||
@@ -47,4 +47,5 @@
|
|||||||
"endif"
|
"endif"
|
||||||
"else"
|
"else"
|
||||||
"empty"
|
"empty"
|
||||||
|
"elif"
|
||||||
] @keyword
|
] @keyword
|
||||||
|
|||||||
Reference in New Issue
Block a user