diff options
| author | bh <qn+git@excalibur.computer> | 2026-03-15 15:03:32 +0800 |
|---|---|---|
| committer | bh <qn+git@excalibur.computer> | 2026-03-15 15:03:32 +0800 |
| commit | 576a147d1a103ccc9af3777d325e7dc09491b933 (patch) | |
| tree | 5ad58cfc8c9f0a07e7059ac88f8a1bbf370c21c9 /lua | |
| parent | 977e8911084c80baf30ab5d3a17af2e0bceb02e0 (diff) | |
Add vim-commentary, flash.nvim, and disable render-markdown by default
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/config/flash.lua | 11 | ||||
| -rw-r--r-- | lua/plugins/init.lua | 16 |
2 files changed, 26 insertions, 1 deletions
diff --git a/lua/config/flash.lua b/lua/config/flash.lua new file mode 100644 index 0000000..868d931 --- /dev/null +++ b/lua/config/flash.lua @@ -0,0 +1,11 @@ +-- ~/.config/nvim/lua/config/flash.lua +return function() + local flash = require('flash') + flash.setup({}) + + vim.keymap.set({ 'n', 'x', 'o' }, 's', function() flash.jump() end, { desc = 'Flash' }) + vim.keymap.set({ 'n', 'x', 'o' }, 'S', function() flash.treesitter() end, { desc = 'Flash Treesitter' }) + vim.keymap.set('o', 'r', function() flash.remote() end, { desc = 'Remote Flash' }) + vim.keymap.set({ 'o', 'x' }, 'R', function() flash.treesitter_search() end, { desc = 'Treesitter Search' }) + vim.keymap.set({ 'c' }, '<c-s>', function() flash.toggle() end, { desc = 'Toggle Flash Search' }) +end diff --git a/lua/plugins/init.lua b/lua/plugins/init.lua index 04eedf8..1ed53df 100644 --- a/lua/plugins/init.lua +++ b/lua/plugins/init.lua @@ -133,12 +133,26 @@ return { -- Git 'tpope/vim-fugitive', + -- Commenting + 'tpope/vim-commentary', + + -- Flash (quick navigation) + { + 'folke/flash.nvim', + event = 'VeryLazy', + config = function() + require('config.flash')() + end, + }, + -- Markdown Rendering { 'MeanderingProgrammer/render-markdown.nvim', dependencies = { 'nvim-treesitter/nvim-treesitter', 'nvim-tree/nvim-web-devicons' }, ft = { 'markdown' }, - opts = {}, + opts = { + enabled = false, + }, }, -- Copilot |
