Compare commits

...

1 Commits

Author SHA1 Message Date
afonsofrancof 2575cc29aa feat(nvim): add preview to the Abolish S command 2026-07-17 14:27:13 +01:00
2 changed files with 23 additions and 0 deletions
+15
View File
@@ -158,6 +158,21 @@ require('onedark').setup({ style = 'dark' })
require('onedark').load()
-- abolish --
-- Add preview to the :S command
local function subvert_preview(opts, preview_ns, preview_buf)
vim.cmd("silent! " .. opts.line1 .. "," .. opts.line2 .. "Subvert" .. opts.args)
return 2
end
vim.api.nvim_create_user_command("S", function(opts)
vim.cmd(opts.line1 .. "," .. opts.line2 .. "Subvert" .. opts.args)
end, {
nargs = "*",
range = "%",
preview = subvert_preview,
})
-- mini --
require('mini.icons').setup()
require('mini.surround').setup()
+8
View File
@@ -123,6 +123,10 @@
"rev": "882c996cf28183f4d63640de0b4c02ec886d01f2",
"src": "https://github.com/folke/snacks.nvim"
},
"tabular": {
"rev": "12437cd1b53488e24936ec4b091c9324cafee311",
"src": "https://github.com/godlygeek/tabular"
},
"tiny-glimmer.nvim": {
"rev": "f26728abf811324d7ed6b035a11d7b76a27c06c3",
"src": "https://github.com/rachartier/tiny-glimmer.nvim"
@@ -139,6 +143,10 @@
"rev": "3b753cf8c6a4dcde6edee8827d464ba9b8c4a6f0",
"src": "https://github.com/tpope/vim-fugitive"
},
"vim-gutentags": {
"rev": "aa47c5e29c37c52176c44e61c780032dfacef3dd",
"src": "https://github.com/ludovicchabant/vim-gutentags"
},
"vimtex": {
"rev": "a5949d2800c1866c878956d49c51fc8d003c6b99",
"src": "https://github.com/lervag/vimtex"