pwsh & rustfmt

This commit is contained in:
2026-05-22 10:11:25 +02:00
parent ee4515da26
commit 91773e0a00
7 changed files with 59 additions and 8 deletions
+6 -6
View File
@@ -1,12 +1,12 @@
local autocmd = vim.api.nvim_create_autocmd
autocmd("LspAttach", {
callback = function(args)
local client = vim.lsp.get_client_by_id(args.data.client_id)
if client then
vim.lsp.document_color.enable(false, { bufnr = args.buf })
end
end,
callback = function(args)
local client = vim.lsp.get_client_by_id(args.data.client_id)
if client then
vim.lsp.document_color.enable(false, { bufnr = args.buf })
end
end,
})
autocmd("VimLeave", {
+2 -1
View File
@@ -12,7 +12,8 @@ M.plugin = {
vim.g.neoformat_enabled_sh = { "shfmt" }
vim.g.neoformat_enabled_bash = { "shfmt" }
vim.g.neoformat_enabled_zsh = { "shfmt" }
vim.g.neoformat_enabled_powershell = { "pwshfmt" } -- experimental
vim.g.neoformat_enabled_rust = { "rustfmt" }
vim.g.neoformat_enabled_pwsh = { "pwshfmt" }
end,
}
+1
View File
@@ -11,6 +11,7 @@ prettier.setup({
"json",
"less",
"markdown",
"rust",
"scss",
"typescript",
"typescriptreact",
+5
View File
@@ -9,4 +9,9 @@ return {
---@type render.md.UserConfig
opts = require "config.format.markdown",
},
{
'mrcjkb/rustaceanvim',
version = '^9',
-- lazy = false,
},
}