20250712.1752273923
This commit is contained in:
parent
4d618ad80f
commit
9fb6c83f2a
4 changed files with 22 additions and 0 deletions
|
@ -4,6 +4,7 @@ return {
|
||||||
log_level = vim.log.levels.DEBUG,
|
log_level = vim.log.levels.DEBUG,
|
||||||
icon = "", --'▎',
|
icon = "", --'▎',
|
||||||
formatters_by_ft = {
|
formatters_by_ft = {
|
||||||
|
awk = { "gawk_fmt" },
|
||||||
lua = { "stylua" },
|
lua = { "stylua" },
|
||||||
python = { "ruff_format", "ruff_fix", "isort" },
|
python = { "ruff_format", "ruff_fix", "isort" },
|
||||||
javascript = { "biome" },
|
javascript = { "biome" },
|
||||||
|
@ -18,6 +19,19 @@ return {
|
||||||
htmldjango = { "prettier" },
|
htmldjango = { "prettier" },
|
||||||
["*"] = { "trim_whitespace", "codespell" },
|
["*"] = { "trim_whitespace", "codespell" },
|
||||||
},
|
},
|
||||||
|
formatters = {
|
||||||
|
gawk_fmt = {
|
||||||
|
command = "gawk",
|
||||||
|
args = function(ctx)
|
||||||
|
return {
|
||||||
|
"-f",
|
||||||
|
"$FILENAME",
|
||||||
|
"-o-",
|
||||||
|
}
|
||||||
|
end,
|
||||||
|
stdin = true,
|
||||||
|
},
|
||||||
|
},
|
||||||
format_on_save = {
|
format_on_save = {
|
||||||
timeout_ms = 1000,
|
timeout_ms = 1000,
|
||||||
lsp_fallback = true,
|
lsp_fallback = true,
|
||||||
|
|
|
@ -101,6 +101,7 @@ local config = function()
|
||||||
})
|
})
|
||||||
|
|
||||||
vim.lsp.enable('clangd')
|
vim.lsp.enable('clangd')
|
||||||
|
-- vim.lsp.enable('awk_ls')
|
||||||
|
|
||||||
|
|
||||||
require("mason").setup()
|
require("mason").setup()
|
||||||
|
|
Binary file not shown.
|
@ -11,3 +11,10 @@ Xft.rgba: rgb
|
||||||
! cursor
|
! cursor
|
||||||
Xcursor.theme: Qogir-dark
|
Xcursor.theme: Qogir-dark
|
||||||
Xcursor.size: 32
|
Xcursor.size: 32
|
||||||
|
|
||||||
|
! xterm
|
||||||
|
! XTerm*utf8: 2
|
||||||
|
! XTerm*locale: true
|
||||||
|
! XTerm*faceName: Monospace
|
||||||
|
! XTerm*faceSize: 10
|
||||||
|
! XTerm*locale: true
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue