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/utils/init.lua | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to '.config/nvim/lua/utils') diff --git a/.config/nvim/lua/utils/init.lua b/.config/nvim/lua/utils/init.lua index 3cea053..65bc6f5 100644 --- a/.config/nvim/lua/utils/init.lua +++ b/.config/nvim/lua/utils/init.lua @@ -46,7 +46,7 @@ end function utils.generate_settings() -- Opens a file in append mode - local file = io.open("settings.lua", "w") + local file = io.open("lv-settings.lua", "w") -- sets the default output file as test.lua io.output(file) @@ -88,9 +88,12 @@ function utils.toggle_autoformat() end function utils.reload_config() - vim.cmd "source ~/.config/nvim/lua/settings.lua" - vim.cmd("source " .. USER_CONFIG_PATH) - require("keymappings").setup() + require("core.lualine").config() + + local config = require "config" + config:load() + + require("keymappings").setup() -- this should be done before loading the plugins vim.cmd "source ~/.config/nvim/lua/plugins.lua" local plugins = require "plugins" local plugin_loader = require("plugin-loader").init() @@ -129,3 +132,5 @@ function utils.is_file(filename) end return utils + +-- TODO: find a new home for these autocommands -- cgit v1.2.3-70-g09d2