sandwich stuff idk
This commit is contained in:
parent
2634786dcb
commit
e6176bad3e
1
init.lua
1
init.lua
|
@ -8,6 +8,7 @@ config.ensure_lazy()
|
||||||
require('lazy').setup(vim.tbl_extend('keep', config.user_lazy_opts(), {
|
require('lazy').setup(vim.tbl_extend('keep', config.user_lazy_opts(), {
|
||||||
spec = {
|
spec = {
|
||||||
{ import = 'plex.plugins' },
|
{ import = 'plex.plugins' },
|
||||||
|
{ import = 'plex.plugins.extras.coding' },
|
||||||
{ import = 'plex.plugins.extras.ui' },
|
{ import = 'plex.plugins.extras.ui' },
|
||||||
{ import = 'plex.plugins.extras.treesitter' },
|
{ import = 'plex.plugins.extras.treesitter' },
|
||||||
{ import = 'plex.plugins.extras.editor' },
|
{ import = 'plex.plugins.extras.editor' },
|
||||||
|
|
|
@ -1,16 +1,18 @@
|
||||||
return {
|
return {
|
||||||
{
|
{
|
||||||
|
-- I dont get how this stuff works
|
||||||
'machakann/vim-sandwich',
|
'machakann/vim-sandwich',
|
||||||
|
enabled = false,
|
||||||
-- stylua: ignore
|
-- stylua: ignore
|
||||||
keys = {
|
keys = {
|
||||||
-- See https://github.com/machakann/vim-sandwich/blob/master/macros/sandwich/keymap/surround.vim
|
-- See https://github.com/machakann/vim-sandwich/blob/master/macros/sandwich/keymap/surround.vim
|
||||||
{ 'ds', '<Plug>(operator-sandwich-delete)<Plug>(operator-sandwich-release-count)<Plug>(textobj-sandwich-query-a)', silent = true },
|
{ '<leader>sd', '<Plug>(operator-sandwich-delete)<Plug>(operator-sandwich-release-count)<Plug>(textobj-sandwich-query-a)', silent = true },
|
||||||
{ 'dss', '<Plug>(operator-sandwich-delete)<Plug>(operator-sandwich-release-count)<Plug>(textobj-sandwich-auto-a)', silent = true },
|
{ '<leader>ssd', '<Plug>(operator-sandwich-delete)<Plug>(operator-sandwich-release-count)<Plug>(textobj-sandwich-auto-a)', silent = true },
|
||||||
{ 'cs', '<Plug>(operator-sandwich-replace)<Plug>(operator-sandwich-release-count)<Plug>(textobj-sandwich-query-a)', silent = true },
|
{ '<leader>sc', '<Plug>(operator-sandwich-replace)<Plug>(operator-sandwich-release-count)<Plug>(textobj-sandwich-query-a)', silent = true },
|
||||||
{ 'css', '<Plug>(operator-sandwich-replace)<Plug>(operator-sandwich-release-count)<Plug>(textobj-sandwich-auto-a)', silent = true },
|
{ '<leader>ssc', '<Plug>(operator-sandwich-replace)<Plug>(operator-sandwich-release-count)<Plug>(textobj-sandwich-auto-a)', silent = true },
|
||||||
{ 'sa', '<Plug>(operator-sandwich-add)', silent = true, mode = { 'n', 'x', 'o' }},
|
{ '<leader>sa', '<Plug>(operator-sandwich-add)', silent = true, mode = { 'n', 'x', 'o' }},
|
||||||
{ 'ir', '<Plug>(textobj-sandwich-auto-i)', silent = true, mode = { 'x', 'o' }},
|
{ '<leader>ir', '<Plug>(textobj-sandwich-auto-i)', silent = true, mode = { 'x', 'o' }},
|
||||||
{ 'ab', '<Plug>(textobj-sandwich-auto-a)', silent = true, mode = { 'x', 'o' }},
|
{ '<leader>ab', '<Plug>(textobj-sandwich-auto-a)', silent = true, mode = { 'x', 'o' }},
|
||||||
},
|
},
|
||||||
init = function()
|
init = function()
|
||||||
vim.g.sandwich_no_default_key_mappings = 1
|
vim.g.sandwich_no_default_key_mappings = 1
|
||||||
|
|
|
@ -62,3 +62,5 @@ Qroczhreer
|
||||||
Blokhof
|
Blokhof
|
||||||
Hauck
|
Hauck
|
||||||
spiderous
|
spiderous
|
||||||
|
zlib
|
||||||
|
experimentelle
|
||||||
|
|
Binary file not shown.
Loading…
Reference in New Issue