chore: sync nvim with latop config
This commit is contained in:
19
.config/nvim/lua/plugins/conform.lua
Normal file
19
.config/nvim/lua/plugins/conform.lua
Normal file
@@ -0,0 +1,19 @@
|
||||
return {
|
||||
'stevearc/conform.nvim',
|
||||
opts = {},
|
||||
config = function ()
|
||||
require("conform").setup({
|
||||
formatters_by_ft = {
|
||||
tex = { "latexindent" },
|
||||
--lua = { "stylua" },
|
||||
-- Conform will run multiple formatters sequentially
|
||||
--python = { "isort", "black" },
|
||||
-- You can customize some of the format options for the filetype (:help conform.format)
|
||||
--rust = { "rustfmt", lsp_format = "fallback" },
|
||||
-- Conform will run the first available formatter
|
||||
--javascript = { "prettierd", "prettier", stop_after_first = true },
|
||||
},
|
||||
})
|
||||
|
||||
end
|
||||
}
|
||||
Reference in New Issue
Block a user