From 23c7fab3b49560915f0fa6bdf07b399b6d9b75d9 Mon Sep 17 00:00:00 2001 From: christianchiarulli Date: Wed, 7 Jul 2021 21:57:36 -0400 Subject: more lazy load be careful --- lua/lv-which-key/init.lua | 44 ++------------------------------------------ 1 file changed, 2 insertions(+), 42 deletions(-) (limited to 'lua/lv-which-key') diff --git a/lua/lv-which-key/init.lua b/lua/lv-which-key/init.lua index b0014654..dbcbb9ae 100644 --- a/lua/lv-which-key/init.lua +++ b/lua/lv-which-key/init.lua @@ -101,29 +101,6 @@ local mappings = { ["f"] = "Find File", ["h"] = "No Highlight", [";"] = "Dashboard", - b = { - name = "Buffers", - j = { "BufferPick", "jump to buffer" }, - f = { "Telescope buffers", "Find buffer" }, - w = { "BufferWipeout", "wipeout buffer" }, - e = { - "BufferCloseAllButCurrent", - "close all but current buffer", - }, - h = { "BufferCloseBuffersLeft", "close all buffers to the left" }, - l = { - "BufferCloseBuffersRight", - "close all BufferLines to the right", - }, - D = { - "BufferOrderByDirectory", - "sort BufferLines automatically by directory", - }, - L = { - "BufferOrderByLanguage", - "sort BufferLines automatically by language", - }, - }, p = { name = "Packer", c = { "PackerCompile", "Compile" }, @@ -161,6 +138,7 @@ local mappings = { "Checkout commit(for current file)", }, }, + l = { name = "LSP", a = { "lua vim.lsp.buf.code_action()", "Code Action" }, @@ -187,6 +165,7 @@ local mappings = { "Workspace Symbols", }, }, + s = { name = "Search", b = { "Telescope git_branches", "Checkout branch" }, @@ -198,11 +177,6 @@ local mappings = { R = { "Telescope registers", "Registers" }, t = { "Telescope live_grep", "Text" }, }, - S = { - name = "Session", - s = { "SessionSave", "Save Session" }, - l = { "SessionLoad", "Load Session" }, - }, T = { name = "Treesitter", i = { ":TSConfigInfo", "Info" }, @@ -246,20 +220,6 @@ if O.plugin.telescope_project.active then mappings["P"] = "Projects" end --- [";"] = "Dashboard", - -if O.lang.latex.active then - mappings["L"] = { - name = "+Latex", - c = { "VimtexCompile", "Toggle Compilation Mode" }, - f = { "call vimtex#fzf#run()", "Fzf Find" }, - i = { "VimtexInfo", "Project Information" }, - s = { "VimtexStop", "Stop Project Compilation" }, - t = { "VimtexTocToggle", "Toggle Table Of Content" }, - v = { "VimtexView", "View PDF" }, - } -end - if O.lushmode then mappings["L"] = { name = "+Lush", -- cgit v1.2.3