pwsh & rustfmt
This commit is contained in:
+6
-6
@@ -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", {
|
||||
|
||||
@@ -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,
|
||||
}
|
||||
|
||||
|
||||
@@ -11,6 +11,7 @@ prettier.setup({
|
||||
"json",
|
||||
"less",
|
||||
"markdown",
|
||||
"rust",
|
||||
"scss",
|
||||
"typescript",
|
||||
"typescriptreact",
|
||||
|
||||
@@ -9,4 +9,9 @@ return {
|
||||
---@type render.md.UserConfig
|
||||
opts = require "config.format.markdown",
|
||||
},
|
||||
{
|
||||
'mrcjkb/rustaceanvim',
|
||||
version = '^9',
|
||||
-- lazy = false,
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user