From d02265175f33fb1586e5e1f080e0730c8642a961 Mon Sep 17 00:00:00 2001 From: Christian Chiarulli Date: Mon, 19 Jul 2021 22:50:07 -0400 Subject: Decoupling config from nvim (#1038) --- lua/core/dashboard.lua | 7 ++++--- lua/core/galaxyline.lua | 2 +- lua/core/linter.lua | 2 +- lua/core/which-key.lua | 2 +- 4 files changed, 7 insertions(+), 6 deletions(-) (limited to 'lua/core') diff --git a/lua/core/dashboard.lua b/lua/core/dashboard.lua index 73f62c25..a1af5319 100644 --- a/lua/core/dashboard.lua +++ b/lua/core/dashboard.lua @@ -43,7 +43,8 @@ M.config = function() }, d = { description = { " Settings " }, - command = ":e " .. CONFIG_PATH .. "/lv-config.lua", + -- command = ":e " .. CONFIG_PATH .. "/lv-config.lua", + command = ":e ~/.config/lvim/lv-config.lua", }, }, @@ -67,8 +68,8 @@ M.setup = function() -- command = "Telescope find_files cwd=" .. CONFIG_PATH, -- }, -- e = {description = {' Marks '}, command = 'Telescope marks'} - vim.cmd "let g:dashboard_session_directory = $HOME..'/.config/nvim/.sessions'" - vim.cmd "let packages = len(globpath('~/.local/share/nvim/site/pack/packer/start', '*', 0, 1))" + vim.cmd 'let g:dashboard_session_directory = "~/.config/lvim/.sessions"' + vim.cmd "let packages = len(globpath('~/.local/share/lunarvim/site/pack/packer/start', '*', 0, 1))" vim.api.nvim_exec( [[ diff --git a/lua/core/galaxyline.lua b/lua/core/galaxyline.lua index 2cb175f4..f880e430 100644 --- a/lua/core/galaxyline.lua +++ b/lua/core/galaxyline.lua @@ -281,7 +281,7 @@ table.insert(gls.right, { condition = condition.hide_in_width, separator = " ", separator_highlight = { "NONE", colors.alt_bg }, - highlight = { colors.alt_bg, colors.alt_bg }, + highlight = { colors.grey, colors.alt_bg }, }, }) diff --git a/lua/core/linter.lua b/lua/core/linter.lua index 676b0cf7..573d6d62 100644 --- a/lua/core/linter.lua +++ b/lua/core/linter.lua @@ -3,7 +3,7 @@ local M = {} M.setup = function() if O.lint_on_save then require("lv-utils").define_augroups { - autolint = { + autolint_on_save = { { "BufWritePost", "", diff --git a/lua/core/which-key.lua b/lua/core/which-key.lua index ec64074b..47661df6 100644 --- a/lua/core/which-key.lua +++ b/lua/core/which-key.lua @@ -64,7 +64,7 @@ M.config = function() ["w"] = { "w!", "Save" }, ["q"] = { "q!", "Quit" }, ["/"] = { "CommentToggle", "Comment" }, - ["c"] = { "BufferClose", "Close Buffer" }, + ["c"] = { "BufferClose!", "Close Buffer" }, ["e"] = { "lua require'core.nvimtree'.toggle_tree()", "Explorer" }, ["f"] = { "Telescope find_files", "Find File" }, ["h"] = { 'let @/=""', "No Highlight" }, -- cgit v1.2.3