mirror of
https://github.com/LunarVim/LunarVim.git
synced 2025-08-03 17:45:52 +02:00
Merge branch 'ChristianChiarulli:master' into master
This commit is contained in:
commit
5b49774744
19 changed files with 81 additions and 350 deletions
13
init.lua
13
init.lua
|
@ -12,3 +12,16 @@ require "lsp"
|
|||
if O.lang.emmet.active then
|
||||
require "lsp.emmet-ls"
|
||||
end
|
||||
|
||||
-- autoformat
|
||||
if O.format_on_save then
|
||||
require("lv-utils").define_augroups {
|
||||
autoformat = {
|
||||
{
|
||||
"BufWritePre",
|
||||
"*",
|
||||
[[try | undojoin | Neoformat | catch /^Vim\%((\a\+)\)\=:E790/ | finally | silent Neoformat | endtry]],
|
||||
},
|
||||
},
|
||||
}
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue