feat: update nvim
This commit is contained in:
parent
6a285955c8
commit
d4f2d27b3f
32 changed files with 2682 additions and 0 deletions
14
nvim/lua/configs/conform.lua
Normal file
14
nvim/lua/configs/conform.lua
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
require('conform').setup({
|
||||
formatters_by_ft = {
|
||||
lua = { "stylua" },
|
||||
cpp = { "clang-format" },
|
||||
go = { "gofmr" },
|
||||
},
|
||||
|
||||
format_on_save = {
|
||||
-- These options will be passed to conform.format()
|
||||
timeout_ms = 500,
|
||||
lsp_fallback = true,
|
||||
},
|
||||
notify_on_error = true,
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue