summaryrefslogtreecommitdiff
path: root/.config/nvim/lua/core/autocmds.lua
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2021-08-25 23:27:45 +0200
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2021-08-25 23:27:45 +0200
commitf93bad12f1b4feeeee007ceab4a350eb1aa26c1e (patch)
tree15b9edf259fc93da70a599dec47de3cfea551a95 /.config/nvim/lua/core/autocmds.lua
parentf52dce93777c41671217ced2894c28d6da9114a0 (diff)
Updates from lvim, remove legacy
Diffstat (limited to '.config/nvim/lua/core/autocmds.lua')
-rw-r--r--.config/nvim/lua/core/autocmds.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/.config/nvim/lua/core/autocmds.lua b/.config/nvim/lua/core/autocmds.lua
index 33dea53..036cc80 100644
--- a/.config/nvim/lua/core/autocmds.lua
+++ b/.config/nvim/lua/core/autocmds.lua
@@ -1,4 +1,5 @@
local autocommands = {}
+local config = require "config"
options.autocommands = {
_general_settings = {
@@ -32,7 +33,7 @@ options.autocommands = {
"*",
"setlocal formatoptions-=c formatoptions-=r formatoptions-=o",
},
- { "BufWritePost", USER_CONFIG_PATH, "lua require('utils').reload_config()" },
+ { "BufWritePost", config.path, "lua require('utils').reload_config()" },
{
"FileType",
"qf",