blob: e1acacd496c3e3e1b79f9ea19548869d2a056697 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
require "default-config"
require "keymappings"
vim.cmd("luafile " .. CONFIG_PATH .. "/config.lua")
require "settings"
require "plugins"
require "cfg.utils"
require "cfg.galaxyline"
require "cfg.treesitter"
require "cfg.which-key"
require "cfg.lsp"
if O.lang.emmet.active then
require "cfg.lsp.emmet-ls"
end
if O.lang.tailwindcss.active then
require "cfg.lsp.tailwindcss-ls"
end
-- autoformat
if O.format_on_save then
require("cfg.utils").define_augroups {
autoformat = {
{
"BufWritePre",
"*",
[[try | undojoin | Neoformat | catch /^Vim\%((\a\+)\)\=:E790/ | finally | silent Neoformat | endtry]],
},
},
}
end
|