diff --git a/.gitmodules b/.gitmodules index 11236e2..92b311a 100644 --- a/.gitmodules +++ b/.gitmodules @@ -107,3 +107,9 @@ [submodule "editors/nvim/site/pack/qol/start/vim-commentary"] path = editors/nvim/site/pack/qol/start/vim-commentary url = https://github.com/tpope/vim-commentary.git +[submodule "editors/nvim/site/pack/qol/start/vim-surround"] + path = editors/nvim/site/pack/qol/start/vim-surround + url = https://github.com/tpope/vim-surround.git +[submodule "editors/nvim/site/pack/qol/start/vim-fugitive"] + path = editors/nvim/site/pack/qol/start/vim-fugitive + url = https://github.com/tpope/vim-fugitive.git diff --git a/editors/nvim/config/lua/fuzzy.lua b/editors/nvim/config/lua/fuzzy.lua index 7d59515..c9e5477 100644 --- a/editors/nvim/config/lua/fuzzy.lua +++ b/editors/nvim/config/lua/fuzzy.lua @@ -8,3 +8,4 @@ require('telescope').setup({ local builtin = require('telescope.builtin') vim.keymap.set('n','f', builtin.find_files, {}) +vim.keymap.set('n','s', builtin.spell_suggest, {}) diff --git a/editors/nvim/config/lua/keymap.lua b/editors/nvim/config/lua/keymap.lua index c33647f..947a4ff 100644 --- a/editors/nvim/config/lua/keymap.lua +++ b/editors/nvim/config/lua/keymap.lua @@ -8,7 +8,7 @@ vim.keymap.set("n", "b", ":lua toggleTransparent()") vim.keymap.set("n", "t", ":NvimTreeToggle") -vim.keymap.set("n", "s", ":lua spellToggle()") +vim.keymap.set("n", "a", ":lua spellToggle()") -- toggle spell check function spellToggle() @@ -31,3 +31,8 @@ vim.cmd([[ ]]) vim.g.mkdp_browserfunc = 'OpenMarkdownPreview' + +-- git actions +vim.keymap.set("n", "ga", ":Git add .") +vim.keymap.set("n", "gm", ":Git commit") + diff --git a/editors/nvim/site/pack/qol/start/vim-fugitive b/editors/nvim/site/pack/qol/start/vim-fugitive new file mode 160000 index 0000000..5b52a0f --- /dev/null +++ b/editors/nvim/site/pack/qol/start/vim-fugitive @@ -0,0 +1 @@ +Subproject commit 5b52a0f395065d6cb7b65a00a5e17eaf9ebd64d5 diff --git a/editors/nvim/site/pack/qol/start/vim-surround b/editors/nvim/site/pack/qol/start/vim-surround new file mode 160000 index 0000000..3d188ed --- /dev/null +++ b/editors/nvim/site/pack/qol/start/vim-surround @@ -0,0 +1 @@ +Subproject commit 3d188ed2113431cf8dac77be61b842acb64433d9