summaryrefslogtreecommitdiff
path: root/.config/nvim/lua/utils
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/utils
parentf52dce93777c41671217ced2894c28d6da9114a0 (diff)
Updates from lvim, remove legacy
Diffstat (limited to '.config/nvim/lua/utils')
-rw-r--r--.config/nvim/lua/utils/init.lua13
1 files changed, 9 insertions, 4 deletions
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