Compare commits
1 Commits
a8d6e09843
..
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 2575cc29aa |
@@ -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()
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user