From 62d913ac3e071ccd09cb40a98c45437b50c49612 Mon Sep 17 00:00:00 2001 From: christianchiarulli Date: Sat, 26 Jun 2021 13:42:58 -0400 Subject: [PATCH] fix multiline comment --- lua/lv-which-key/init.lua | 47 ++++++++++++++++++++------------------- 1 file changed, 24 insertions(+), 23 deletions(-) diff --git a/lua/lv-which-key/init.lua b/lua/lv-which-key/init.lua index d98ea3ed..377d170f 100644 --- a/lua/lv-which-key/init.lua +++ b/lua/lv-which-key/init.lua @@ -92,13 +92,13 @@ local mappings = { L = {"BufferOrderByLanguage", "sort BufferLines automatically by language"}, }, - ["/"] = {"CommentToggle", "Comment"}, + -- ["/"] = {"CommentToggle", "Comment"}, [";"] = {"Dashboard", "Dashboard"}, - ["c"] = {"BufferClose", "Close Buffer"}, - ["e"] = {"NvimTreeToggle", "Explorer"}, - ["f"] = {"Telescope find_files", "Find File"}, - ["h"] = {"set hlsearch!", "No Highlight"}, - ["p"] = {"lua require'telescope'.extensions.project.project{}", "Projects"}, + -- ["c"] = {"BufferClose", "Close Buffer"}, + -- ["e"] = {"NvimTreeToggle", "Explorer"}, + -- ["f"] = {"Telescope find_files", "Find File"}, + -- ["h"] = {"set hlsearch!", "No Highlight"}, + -- ["p"] = {"lua require'telescope'.extensions.project.project{}", "Projects"}, d = { name = "Diagnostics", @@ -182,25 +182,26 @@ local mappings = { } } -local visualOpts = { - mode = "v", -- Visual mode - prefix = "", - buffer = nil, -- Global mappings. Specify a buffer number for buffer local mappings - silent = true, -- use `silent` when creating keymaps - noremap = true, -- use `noremap` when creating keymaps - nowait = false -- use `nowait` when creating keymaps -} +-- TODO come back and fix visual mappings +-- local visualOpts = { +-- mode = "v", -- Visual mode +-- prefix = "", +-- buffer = nil, -- Global mappings. Specify a buffer number for buffer local mappings +-- silent = true, -- use `silent` when creating keymaps +-- noremap = true, -- use `noremap` when creating keymaps +-- nowait = false -- use `nowait` when creating keymaps +-- } -local visualMappings = { - ["/"] = {"CommentToggle", "Comment"}, - r = { - name = "Replace", - f = {"lua require('spectre').open_visual({path = vim.fn.expand('%')})", "File"}, - p = {"lua require('spectre').open_visual()", "Project"} - } -} +-- local visualMappings = { + -- ["/"] = {"CommentToggle", "Comment"}, + -- r = { + -- name = "Replace", + -- f = {"lua require('spectre').open_visual({path = vim.fn.expand('%')})", "File"}, + -- p = {"lua require('spectre').open_visual()", "Project"} + -- } +-- } local wk = require("which-key") wk.register(mappings, opts) -wk.register(visualMappings, visualOpts) +-- wk.register(visualMappings, visualOpts)