From 4bf1e1caae0ba287d60cea180cd09fdcbd0dad0b Mon Sep 17 00:00:00 2001 From: xesc Date: Sat, 31 Aug 2024 18:38:54 +0200 Subject: [PATCH] add comments, set width of Filetree and remove fugitive --- lua/plugin/fugitive.lua | 19 ------------------- lua/plugin/nvimtree.lua | 2 +- lua/plugin/surround.lua | 12 ++++++++++++ 3 files changed, 13 insertions(+), 20 deletions(-) delete mode 100644 lua/plugin/fugitive.lua diff --git a/lua/plugin/fugitive.lua b/lua/plugin/fugitive.lua deleted file mode 100644 index 5d9ada6..0000000 --- a/lua/plugin/fugitive.lua +++ /dev/null @@ -1,19 +0,0 @@ -return { - { - 'tpope/vim-fugitive', - keys = { - { "gG", "Git ", desc = "git" }, - { "gs", "Git status ", desc = "git status" }, - { "gd", "Git diff ", desc = "git diff" }, - { "gD", "Git diff --staged ", desc = "git diff --staged" }, - { "gl", "Git log --graph ", desc = "git log --graph" }, - { "ga", "Git add --interactive ", desc = "git add" }, - { "gA", "Git add -A ", desc = "git add -A " }, - { "gc", "Git commit ", desc = "git commit" }, - { "gC", "Git commit --amend ", desc = "git commit --amend " }, - { "gCN", "Git commit --amend --no-edit ", desc = "git commit --amend " }, - { "gp", "Git push ", desc = "git push" }, - { "gP", "Git pull ", desc = "git pull" }, - }, - } -} diff --git a/lua/plugin/nvimtree.lua b/lua/plugin/nvimtree.lua index 4419585..4a75c8a 100644 --- a/lua/plugin/nvimtree.lua +++ b/lua/plugin/nvimtree.lua @@ -11,7 +11,7 @@ return { config = function() require("nvim-tree").setup({ view = { - width = 44, + width = 56, }, }) end, diff --git a/lua/plugin/surround.lua b/lua/plugin/surround.lua index 32a0f63..aa80b74 100644 --- a/lua/plugin/surround.lua +++ b/lua/plugin/surround.lua @@ -10,3 +10,15 @@ return { end } } + +-- Old text Command New text +-- -------------------------------------------------------------------------------- +-- surround_words ysiw) (surround_words) +-- make strings ys$" "make strings" +-- [delete around me!] ds] delete around me! +-- remove HTML tags dst remove HTML tags +-- 'change quotes' cs'" "change quotes" +-- or tag types csth1

or tag types

+-- delete(function calls) dsf function calls + +-- :h nvim-surround.usage