Initial commit
This commit is contained in:
commit
72fe210843
16 changed files with 1093 additions and 0 deletions
19
nvim/.config/nvim/lua/custom/configs/formatter.lua
Normal file
19
nvim/.config/nvim/lua/custom/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
|
||||
Loading…
Add table
Add a link
Reference in a new issue