diff options
author | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2021-09-06 21:53:56 +0200 |
---|---|---|
committer | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2021-09-06 21:53:56 +0200 |
commit | 6a1732982287ef5aff2a6de171192b9e2bb90758 (patch) | |
tree | 543f94f80d548b9ed7a9d0daecb08575a01a9a45 /.config/nvim/init.lua | |
parent | b89e893bfc7b8893dc4c13aa55f627096b32758a (diff) |
Updates to nvim from lvim
Diffstat (limited to '.config/nvim/init.lua')
-rw-r--r-- | .config/nvim/init.lua | 11 |
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 |