update arch
This commit is contained in:
parent
c49181befc
commit
75825901b3
37 changed files with 460 additions and 86 deletions
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
|
||||
Loading…
Add table
Add a link
Reference in a new issue