summaryrefslogtreecommitdiff
path: root/.config/nvim/init.lua
diff options
context:
space:
mode:
Diffstat (limited to '.config/nvim/init.lua')
-rw-r--r--.config/nvim/init.lua11
1 files changed, 7 insertions, 4 deletions
diff --git a/.config/nvim/init.lua b/.config/nvim/init.lua
index ff6c632..033963e 100644
--- a/.config/nvim/init.lua
+++ b/.config/nvim/init.lua
@@ -1,3 +1,5 @@
+local home_dir = vim.loop.os_homedir()
+
-- TODO: we need something like this: vim.opt.packpath = vim.opt.rtp
vim.cmd [[let &packpath = &runtimepath]]
-- }}}
@@ -6,12 +8,13 @@ local config = require "config"
config:init()
config:load()
-local autocmds = require "core.autocmds"
-autocmds.define_augroups(options.autocommands)
-
local plugins = require "plugins"
local plugin_loader = require("plugin-loader").init()
plugin_loader:load { plugins, options.plugins }
+
+local Log = require "core.log"
+Log:info "Starting nvim"
+
vim.g.colors_name = options.colorscheme -- Colorscheme must get called after plugins are loaded or it will break new installs.
vim.cmd("colorscheme " .. options.colorscheme)
@@ -31,7 +34,7 @@ end
local lsp_settings_status_ok, lsp_settings = pcall(require, "nlspsettings")
if lsp_settings_status_ok then
lsp_settings.setup {
- config_home = os.getenv "HOME" .. "/.config/nvim/lsp-settings",
+ config_home = home_dir .. "/.config/nvim/lsp-settings",
}
end