From f93bad12f1b4feeeee007ceab4a350eb1aa26c1e Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Wed, 25 Aug 2021 23:27:45 +0200 Subject: Updates from lvim, remove legacy --- .config/nvim/lua/core/autocmds.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to '.config/nvim/lua/core/autocmds.lua') 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", -- cgit v1.2.3-70-g09d2