From c9e2adbbc8fd7a5398c8c66d21f0e02dc7b60203 Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Mon, 8 Nov 2021 23:13:05 +0100 Subject: Add new lunarvin updates --- .config/nvim/lua/core/which-key.lua | 34 +++++++++++++++++++++------------- 1 file changed, 21 insertions(+), 13 deletions(-) (limited to '.config/nvim/lua/core/which-key.lua') diff --git a/.config/nvim/lua/core/which-key.lua b/.config/nvim/lua/core/which-key.lua index fe38358..ccf0c2d 100644 --- a/.config/nvim/lua/core/which-key.lua +++ b/.config/nvim/lua/core/which-key.lua @@ -61,7 +61,7 @@ M.config = function() -- NOTE: Prefer using : over as the latter avoids going back in normal-mode. -- see https://neovim.io/doc/user/map.html#:map-cmd vmappings = { - ["k"] = { "lua ___comment_gc(vim.fn.visualmode())", "Comment" }, + ["/"] = { "lua ___comment_gc(vim.fn.visualmode())", "Comment" }, }, mappings = { ["w"] = { "w!", "Save" }, @@ -69,7 +69,7 @@ M.config = function() ["k"] = { "lua require('Comment').toggle()", "Comment" }, ["c"] = { "BufferClose!", "Close Buffer" }, ["f"] = { "Telescope find_files", "Find File" }, - ["n"] = { "nohlsearch", "No Highlight" }, + ["h"] = { "nohlsearch", "No Highlight" }, b = { name = "Buffers", j = { "BufferPick", "Jump" }, @@ -98,7 +98,7 @@ M.config = function() name = "Packer", c = { "PackerCompile", "Compile" }, i = { "PackerInstall", "Install" }, - r = { "lua require('utils').reload_config()", "Reload" }, + r = { "lua require('plugin-loader').recompile()", "Re-compile" }, s = { "PackerSync", "Sync" }, S = { "PackerStatus", "Status" }, u = { "PackerUpdate", "Update" }, @@ -139,7 +139,10 @@ M.config = function() l = { name = "LSP", - a = { "lua require('core.telescope').code_actions()", "Code Action" }, + a = { + "lua require('core.telescope').code_actions()", + "Code Action", + }, d = { "Telescope lsp_document_diagnostics", "Document Diagnostics", @@ -148,15 +151,15 @@ M.config = function() "Telescope lsp_workspace_diagnostics", "Workspace Diagnostics", }, - -- f = { "silent FormatWrite", "Format" }, f = { "lua vim.lsp.buf.formatting()", "Format" }, i = { "LspInfo", "Info" }, + I = { "LspInstallInfo", "Installer Info" }, j = { - "lua vim.lsp.diagnostic.goto_next({popup_opts = {border = options.lsp.popup_border}})", + "lua vim.lsp.diagnostic.goto_next({popup_opts = {border = lsp.popup_border}})", "Next Diagnostic", }, k = { - "lua vim.lsp.diagnostic.goto_prev({popup_opts = {border = options.lsp.popup_border}})", + "lua vim.lsp.diagnostic.goto_prev({popup_opts = {border = lsp.popup_border}})", "Prev Diagnostic", }, l = { "lua vim.lsp.codelens.run()", "CodeLens Action" }, @@ -180,19 +183,23 @@ M.config = function() "Workspace Symbols", }, }, - i = { - name = "+nvim", + L = { + name = "+NeoVim", c = { - "edit ~/.config/nvim/config.lua", + "edit " .. get_config_dir() .. "/config.lua", "Edit config.lua", }, k = { "lua require('keymappings').print()", - "View LunarVim's default keymappings", + "View NeoVim's default keymappings", }, i = { "lua require('core.info').toggle_popup(vim.bo.filetype)", - "Toggle nvim Info", + "Toggle NeoVim Info", + }, + I = { + "lua require('core.telescope.custom-finders').view_lunarvim_changelog()", + "View NeoVim's changelog", }, l = { name = "+logs", @@ -226,7 +233,8 @@ M.config = function() "Open the Packer logfile", }, }, - r = { "lua require('utils').reload_config()", "Reload configurations" }, + r = { "NvimReload", "Reload Neovim's configuration" }, + u = { "NvimUpdate", "Update NeoVim" }, }, s = { name = "Search", -- cgit v1.2.3-70-g09d2