From 655fd1b0ca5405ce67f3f8083ef6a4f7d2dedea0 Mon Sep 17 00:00:00 2001 From: Abouzar Parvan Date: Thu, 23 Dec 2021 13:03:20 +0330 Subject: refactor: uplift neovim's minimum version requirement to 0.6.0 (#2093) Co-authored-by: kylo252 <59826753+kylo252@users.noreply.github.com> --- lua/lvim/core/which-key.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'lua/lvim/core/which-key.lua') diff --git a/lua/lvim/core/which-key.lua b/lua/lvim/core/which-key.lua index a1bc3011..20c4cf0c 100644 --- a/lua/lvim/core/which-key.lua +++ b/lua/lvim/core/which-key.lua @@ -61,12 +61,12 @@ 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 = { - ["/"] = { "lua require('Comment.api').gc(vim.fn.visualmode())", "Comment" }, + ["/"] = { "lua require('Comment.api').toggle_linewise_op(vim.fn.visualmode())", "Comment" }, }, mappings = { ["w"] = { "w!", "Save" }, ["q"] = { "q!", "Quit" }, - ["/"] = { "lua require('Comment').toggle()", "Comment" }, + ["/"] = { "lua require('Comment.api').toggle_current_linewise()", "Comment" }, ["c"] = { "BufferClose!", "Close Buffer" }, ["f"] = { require("lvim.core.telescope.custom-finders").find_project_files, "Find File" }, ["h"] = { "nohlsearch", "No Highlight" }, @@ -152,11 +152,11 @@ M.config = function() i = { "LspInfo", "Info" }, I = { "LspInstallInfo", "Installer Info" }, j = { - "lua vim.lsp.diagnostic.goto_next({popup_opts = {border = lvim.lsp.popup_border}})", + "lua vim.diagnostic.goto_next()", "Next Diagnostic", }, k = { - "lua vim.lsp.diagnostic.goto_prev({popup_opts = {border = lvim.lsp.popup_border}})", + "lua vim.diagnostic.goto_prev()", "Prev Diagnostic", }, l = { "lua vim.lsp.codelens.run()", "CodeLens Action" }, @@ -166,7 +166,7 @@ M.config = function() t = { "lua require('lvim.lsp.peek').Peek('typeDefinition')", "Type Definition" }, i = { "lua require('lvim.lsp.peek').Peek('implementation')", "Implementation" }, }, - q = { "lua vim.lsp.diagnostic.set_loclist()", "Quickfix" }, + q = { "lua vim.diagnostic.setloclist()", "Quickfix" }, r = { "lua vim.lsp.buf.rename()", "Rename" }, s = { "Telescope lsp_document_symbols", "Document Symbols" }, S = { -- cgit v1.2.3