fix formatting according to stylua

This commit is contained in:
abzcoding 2021-07-25 16:27:48 +04:30
parent e37a511abc
commit 739784e43c
5 changed files with 5 additions and 15 deletions

View file

@ -18,7 +18,7 @@ if not status_ok then
print "something is wrong with your lv-config"
print(error)
end
require('core.autocmds').define_augroups(lvim.autocommands)
require("core.autocmds").define_augroups(lvim.autocommands)
require "keymappings"

View file

@ -1,6 +1,5 @@
local autocommands = {}
lvim.autocommands = {
_general_settings = {
{
@ -28,14 +27,11 @@ lvim.autocommands = {
"*",
"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",
"qf",
"set nobuflisted"
"set nobuflisted",
},
-- { "VimLeavePre", "*", "set title set titleold=" },
},
@ -70,7 +66,7 @@ lvim.autocommands = {
-- will cause split windows to be resized evenly if main window is resized
{ "BufWritePost", "plugins.lua", "PackerCompile" },
},
-- _fterm_lazygit = {
-- -- will cause esc key to exit lazy git
-- {"TermEnter", "*", "call LazyGitNativation()"}
@ -107,6 +103,4 @@ function autocommands.define_augroups(definitions) -- {{{1
end
end
return autocommands

View file

@ -53,9 +53,7 @@ lvim = {
-- use lv-config.lua for this not put here
},
autocommands = {
},
autocommands = {},
}
local schemas = nil

View file

@ -130,7 +130,6 @@ function lv_utils.add_keymap_term_mode(opts, keymaps)
lv_utils.add_keymap("t", opts, keymaps)
end
function lv_utils.unrequire(m)
package.loaded[m] = nil
_G[m] = nil

View file

@ -67,7 +67,6 @@ lvim.builtin.treesitter.highlight.enabled = true
-- }
-- }
-- Autocommands (https://neovim.io/doc/user/autocmd.html)
-- lvim.autocommands.custom_groups = {
-- { "BufWinEnter", "*.lua", "setlocal ts=8 sw=8" },