chore(nvim): auto format is dangerous

main
sudo pacman -Syu 2023-10-02 22:18:06 +07:00
parent 8265729511
commit cdd20a5180
1 changed files with 3 additions and 12 deletions

View File

@ -430,6 +430,9 @@ require("lazy").setup({
}, },
} }
end, end,
config = function()
vim.keymap.set("n", "<Leader>a", ":A<CR>")
end,
}, },
-- https://github.com/echasnovski/mini.nvim -- https://github.com/echasnovski/mini.nvim
@ -481,18 +484,6 @@ require("lazy").setup({
vim.g.neoformat_enabled_zsh = { "shfmt" } vim.g.neoformat_enabled_zsh = { "shfmt" }
vim.g.shfmt_opt = "-ci" vim.g.shfmt_opt = "-ci"
end, end,
config = function()
local augroup = vim.api.nvim_create_augroup("UserNeoformatConfig", {})
vim.api.nvim_create_autocmd("BufWritePre", {
group = augroup,
pattern = {
"*.go",
"*.lua",
"*.md",
},
command = "Neoformat",
})
end,
}, },
-- https://github.com/nvim-treesitter/nvim-treesitter -- https://github.com/nvim-treesitter/nvim-treesitter