dotfiles

My personal shell configs and stuff
git clone git://git.alex.balgavy.eu/dotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

commit 6e69bfe836c6fb44d6f7d1c60aec0e7660814253
parent ca25beb31bbf6cd1c2c59c4ae1d3d2416a2e4414
Author: Alexander Balgavy <alexander.balgavy@spaceapplications.com>
Date:   Sun,  8 Oct 2023 14:24:46 +0200

nvim: plugins changes

Diffstat:
Mnvim/lua/plugins.lua | 32+++++++++++++++++++-------------
1 file changed, 19 insertions(+), 13 deletions(-)

diff --git a/nvim/lua/plugins.lua b/nvim/lua/plugins.lua @@ -66,7 +66,13 @@ return { topdelete = { text = '‾' }, changedelete = { text = '~' }, }, - } + on_attach = function() + vim.keymap.set('n', ']c', function() require('gitsigns').next_hunk() end, {buffer = true}) + vim.keymap.set('n', '[c', function() require('gitsigns').prev_hunk() end, {buffer = true}) + vim.keymap.set('n', ']=', function() require('gitsigns').preview_hunk_inline() end, {buffer = true}) + vim.keymap.set('n', ']+', function() require('gitsigns').select_hunk() end, {buffer = true}) + end, + }, }, @@ -142,21 +148,21 @@ return { -- stylua: ignore keys = { { "<leader><leader>s", mode = { "n", "x", "o" }, function() require("flash").jump() end, desc = "Flash" }, - { "S", mode = { "n", "o", "x" }, function() require("flash").treesitter() end, desc = "Flash Treesitter" }, + { "<leader>S", mode = { "n", "o", "x" }, function() require("flash").treesitter() end, desc = "Flash Treesitter" }, { "r", mode = "o", function() require("flash").remote() end, desc = "Remote Flash" }, { "R", mode = { "o", "x" }, function() require("flash").treesitter_search() end, desc = "Treesitter Search" }, { "<c-s>", mode = { "c" }, function() require("flash").toggle() end, desc = "Toggle Flash Search" }, }, }, - { - "chrisgrieser/nvim-origami", - event = "BufReadPost", -- later or on keypress would prevent saving folds - opts = true, -- needed even when using default config - config = function() - require('origami').setup({ - pauseFoldsOnSearch = true, - }) - end - }, - + -- { + -- "chrisgrieser/nvim-origami", + -- event = "BufReadPost", -- later or on keypress would prevent saving folds + -- opts = true, -- needed even when using default config + -- config = function() + -- require('origami').setup({ + -- pauseFoldsOnSearch = true, + -- }) + -- end + -- }, + -- }