update arch
This commit is contained in:
19
.config/nvim/lua/old/configs/formatter.lua
Normal file
19
.config/nvim/lua/old/configs/formatter.lua
Normal file
@@ -0,0 +1,19 @@
|
||||
local M = {
|
||||
filetype = {
|
||||
javascript = {
|
||||
require("formatter.filetypes.javascript").prettier
|
||||
},
|
||||
typescript = {
|
||||
require("formatter.filetypes.typescript").prettier
|
||||
},
|
||||
["*"] = {
|
||||
require("formatter.filetypes.any").remove_trailing_whitespace
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
vim.api.nvim_create_autocmd({ "BufWritePost" }, {
|
||||
command = "FormatWriteLock"
|
||||
})
|
||||
|
||||
return M
|
||||
Reference in New Issue
Block a user