|
@@ -1,6 +1,5 @@
|
|
local autocommands = {}
|
|
local autocommands = {}
|
|
|
|
|
|
-
|
|
|
|
lvim.autocommands = {
|
|
lvim.autocommands = {
|
|
_general_settings = {
|
|
_general_settings = {
|
|
{
|
|
{
|
|
@@ -28,14 +27,11 @@ lvim.autocommands = {
|
|
"*",
|
|
"*",
|
|
"setlocal formatoptions-=c formatoptions-=r formatoptions-=o",
|
|
"setlocal formatoptions-=c formatoptions-=r formatoptions-=o",
|
|
},
|
|
},
|
|
- { "BufWritePost",
|
|
|
|
- "lv-config.lua",
|
|
|
|
- "lua require('lv-utils').reload_lv_config()"
|
|
|
|
- },
|
|
|
|
|
|
+ { "BufWritePost", "lv-config.lua", "lua require('lv-utils').reload_lv_config()" },
|
|
{
|
|
{
|
|
"FileType",
|
|
"FileType",
|
|
"qf",
|
|
"qf",
|
|
- "set nobuflisted"
|
|
|
|
|
|
+ "set nobuflisted",
|
|
},
|
|
},
|
|
-- { "VimLeavePre", "*", "set title set titleold=" },
|
|
-- { "VimLeavePre", "*", "set title set titleold=" },
|
|
},
|
|
},
|
|
@@ -70,7 +66,7 @@ lvim.autocommands = {
|
|
-- will cause split windows to be resized evenly if main window is resized
|
|
-- will cause split windows to be resized evenly if main window is resized
|
|
{ "BufWritePost", "plugins.lua", "PackerCompile" },
|
|
{ "BufWritePost", "plugins.lua", "PackerCompile" },
|
|
},
|
|
},
|
|
-
|
|
|
|
|
|
+
|
|
-- _fterm_lazygit = {
|
|
-- _fterm_lazygit = {
|
|
-- -- will cause esc key to exit lazy git
|
|
-- -- will cause esc key to exit lazy git
|
|
-- {"TermEnter", "*", "call LazyGitNativation()"}
|
|
-- {"TermEnter", "*", "call LazyGitNativation()"}
|
|
@@ -107,6 +103,4 @@ function autocommands.define_augroups(definitions) -- {{{1
|
|
end
|
|
end
|
|
end
|
|
end
|
|
|
|
|
|
-
|
|
|
|
-
|
|
|
|
return autocommands
|
|
return autocommands
|