mirror of
https://github.com/kristoferssolo/SoloVim.git
synced 2026-02-04 06:42:05 +00:00
feat: add sql injections
This commit is contained in:
@@ -6,7 +6,7 @@ if not (vim.uv or vim.loop).fs_stat(lazypath) then
|
||||
if vim.v.shell_error ~= 0 then
|
||||
vim.api.nvim_echo({
|
||||
{ "Failed to clone lazy.nvim:\n", "ErrorMsg" },
|
||||
{ out, "WarningMsg" },
|
||||
{ out, "WarningMsg" },
|
||||
{ "\nPress any key to exit..." },
|
||||
}, true, {})
|
||||
vim.fn.getchar()
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
local js = { "biome", "biome-check" }
|
||||
local html = { "djlint", "rustywind" }
|
||||
local makrdown = { "cbfmt", "markdownlint", "markdown-toc" }
|
||||
|
||||
return {
|
||||
"stevearc/conform.nvim",
|
||||
event = { "BufWritePre" },
|
||||
@@ -16,20 +19,21 @@ return {
|
||||
opts = {
|
||||
formatters_by_ft = {
|
||||
["_"] = { "trim_whitespace" },
|
||||
["*"] = { "injected" },
|
||||
bash = { "shfmt" },
|
||||
c = { "clang-format" },
|
||||
cmake = { "cmake_format" },
|
||||
cpp = { "clang-format" },
|
||||
css = { "prettier" },
|
||||
go = { "goimports", "gofmt" },
|
||||
html = { "djlint", "rustywind" },
|
||||
htmldjango = { "djlint", "rustywind" },
|
||||
html = html,
|
||||
htmldjango = html,
|
||||
http = { "kulala-fmt" },
|
||||
javascript = js,
|
||||
javascriptreact = js,
|
||||
json = { "jq" },
|
||||
lua = { "stylua" },
|
||||
markdown = { "cbfmt", "markdownlint", "markdown-toc" },
|
||||
markdown = makrdown,
|
||||
python = { "ruff_format", "ruff_fix", "ruff_organize_imports", "docformatter" },
|
||||
rest = { "kulala" },
|
||||
rust = { "rustfmt", "leptosfmt", "yew-fmt" },
|
||||
@@ -39,9 +43,19 @@ return {
|
||||
typescript = js,
|
||||
typescriptreact = js,
|
||||
typst = { "typstyle" },
|
||||
vimwiki = { "cbfmt", "markdownlint", "markdown-toc" },
|
||||
vimwiki = makrdown,
|
||||
yaml = { "yamlfmt" },
|
||||
},
|
||||
formatters = {
|
||||
sqruff = {
|
||||
prepend_args = function(_self, _ctx)
|
||||
return {
|
||||
"--config",
|
||||
vim.fn.expand("~/.config/sqruff/config.cfg"),
|
||||
}
|
||||
end,
|
||||
},
|
||||
},
|
||||
format_on_save = {
|
||||
timeout_ms = 500,
|
||||
lsp_format = "fallback",
|
||||
|
||||
@@ -4,16 +4,16 @@ return {
|
||||
opts = {
|
||||
events = { "InsertLeave", "BufWritePost", "BufReadPost", "InsertEnter" },
|
||||
linters_by_ft = {
|
||||
["*"] = { "codespell", "typos" },
|
||||
cmake = { "cmakelint" },
|
||||
htmldjango = { "djlint" },
|
||||
javascript = js,
|
||||
javascriptreact = js,
|
||||
lua = { "selene" },
|
||||
python = { "mypy" },
|
||||
sql = { "sqruff" },
|
||||
typescript = js,
|
||||
typescriptreact = js,
|
||||
python = { "mypy" },
|
||||
htmldjango = { "djlint" },
|
||||
sql = { "sqruff" },
|
||||
lua = { "selene" },
|
||||
cmake = { "cmakelint" },
|
||||
["*"] = { "codespell", "typos" },
|
||||
},
|
||||
},
|
||||
config = function(_, opts)
|
||||
|
||||
@@ -41,6 +41,9 @@ return {
|
||||
},
|
||||
},
|
||||
},
|
||||
semanticHighlighting = {
|
||||
strings = { enable = false },
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user