From ac844a6a3d8aa685cc89e71d7906c497492e33aa Mon Sep 17 00:00:00 2001 From: Ryan Yin Date: Sat, 13 Apr 2024 00:32:46 +0800 Subject: [PATCH] feat(home/base/tui/editors/neovim): astronvim v4 - leader => Leader --- .../neovim/nvim/lua/plugins/astrocore.lua | 40 +++++++++---------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/home/base/tui/editors/neovim/nvim/lua/plugins/astrocore.lua b/home/base/tui/editors/neovim/nvim/lua/plugins/astrocore.lua index 3bb22e4b..b3b77311 100644 --- a/home/base/tui/editors/neovim/nvim/lua/plugins/astrocore.lua +++ b/home/base/tui/editors/neovim/nvim/lua/plugins/astrocore.lua @@ -43,7 +43,7 @@ return { }, g = { -- vim.g. -- configure global vim variables (vim.g) - -- NOTE: `mapleader` and `maplocalleader` must be set in the AstroNvim opts or before `lazy.setup` + -- NOTE: `mapLeader` and `maplocalLeader` must be set in the AstroNvim opts or before `lazy.setup` -- This can be found in the `lua/lazy_setup.lua` file }, }, @@ -73,7 +73,7 @@ return { -- second key is the lefthand side of the map -- mappings seen under group name "Buffer" - ["bn"] = { "tabnew", desc = "New tab" }, + ["bn"] = { "tabnew", desc = "New tab" }, -- quick save [""] = { ":w!", desc = "Save File" }, -- change description but the same command @@ -82,51 +82,51 @@ return { -- 1. If {cmd} is a List it runs directly (no 'shell') -- 2. If {cmd} is a String it runs in the 'shell' -- search and replace globally - ["ss"] = { 'lua require("spectre").toggle()', desc = "Toggle Spectre" }, - ["sw"] = { + ["ss"] = { 'lua require("spectre").toggle()', desc = "Toggle Spectre" }, + ["sw"] = { 'lua require("spectre").open_visual({select_word=true})', desc = "Search current word", }, - ["sp"] = { + ["sp"] = { 'lua require("spectre").open_file_search({select_word=true})', desc = "Search on current file", }, -- refactoring - ["ri"] = { + ["ri"] = { function() require("refactoring").refactor "Inline Variable" end, desc = "Inverse of extract variable", }, - ["rb"] = { function() require("refactoring").refactor "Extract Block" end, desc = "Extract Block" }, - ["rbf"] = { + ["rb"] = { function() require("refactoring").refactor "Extract Block" end, desc = "Extract Block" }, + ["rbf"] = { function() require("refactoring").refactor "Extract Block To File" end, desc = "Extract Block To File", }, - ["rr"] = { + ["rr"] = { function() require("telescope").extensions.refactoring.refactors() end, desc = "Prompt for a refactor to apply", }, - ["rp"] = { + ["rp"] = { function() require("refactoring").debug.printf { below = false } end, desc = "Insert print statement to mark the calling of a function", }, - ["rv"] = { + ["rv"] = { function() require("refactoring").debug.print_var() end, desc = "Insert print statement to print a variable", }, - ["rc"] = { + ["rc"] = { function() require("refactoring").debug.cleanup {} end, desc = "Cleanup of all generated print statements", }, -- yank_history - ["yh"] = { + ["yh"] = { function() require("telescope").extensions.yank_history.yank_history() end, desc = "Preview Yank History", }, -- undo history - ["uh"] = { "Telescope undo", desc = "Telescope undo" }, + ["uh"] = { "Telescope undo", desc = "Telescope undo" }, -- implementation/definition preview ["gpd"] = { "lua require('goto-preview').goto_preview_definition()", desc = "goto_preview_definition" }, @@ -148,28 +148,28 @@ return { -- Visual mode v = { -- search and replace globally - ["sw"] = { 'lua require("spectre").open_visual()', desc = "Search current word" }, + ["sw"] = { 'lua require("spectre").open_visual()', desc = "Search current word" }, }, -- visual mode(what's the difference between v and x???) x = { -- refactoring - ["ri"] = { + ["ri"] = { function() require("refactoring").refactor "Inline Variable" end, desc = "Inverse of extract variable", }, - ["re"] = { + ["re"] = { function() require("refactoring").refactor "Extract Function" end, desc = "Extracts the selected code to a separate function", }, - ["rf"] = { + ["rf"] = { function() require("refactoring").refactor "Extract Function To File" end, desc = "Extract Function To File", }, - ["rv"] = { + ["rv"] = { function() require("refactoring").refactor "Extract Variable" end, desc = "Extracts occurrences of a selected expression to its own variable", }, - ["rr"] = { + ["rr"] = { function() require("telescope").extensions.refactoring.refactors() end, desc = "Prompt for a refactor to apply", },