From e6176bad3e9ceb8418dfc551d1fa4b94ec082a9d Mon Sep 17 00:00:00 2001 From: PlexSheep Date: Mon, 11 Sep 2023 14:41:20 +0200 Subject: [PATCH] sandwich stuff idk --- init.lua | 1 + lua/plex/plugins/extras/coding/sandwich.lua | 16 +++++++++------- spell/en.utf-8.add | 2 ++ spell/en.utf-8.add.spl | Bin 860 -> 896 bytes 4 files changed, 12 insertions(+), 7 deletions(-) diff --git a/init.lua b/init.lua index 2c89d66..27ec17f 100644 --- a/init.lua +++ b/init.lua @@ -8,6 +8,7 @@ config.ensure_lazy() require('lazy').setup(vim.tbl_extend('keep', config.user_lazy_opts(), { spec = { { import = 'plex.plugins' }, + { import = 'plex.plugins.extras.coding' }, { import = 'plex.plugins.extras.ui' }, { import = 'plex.plugins.extras.treesitter' }, { import = 'plex.plugins.extras.editor' }, diff --git a/lua/plex/plugins/extras/coding/sandwich.lua b/lua/plex/plugins/extras/coding/sandwich.lua index b29d003..29c14eb 100644 --- a/lua/plex/plugins/extras/coding/sandwich.lua +++ b/lua/plex/plugins/extras/coding/sandwich.lua @@ -1,16 +1,18 @@ return { { + -- I dont get how this stuff works 'machakann/vim-sandwich', + enabled = false, -- stylua: ignore keys = { -- See https://github.com/machakann/vim-sandwich/blob/master/macros/sandwich/keymap/surround.vim - { 'ds', '(operator-sandwich-delete)(operator-sandwich-release-count)(textobj-sandwich-query-a)', silent = true }, - { 'dss', '(operator-sandwich-delete)(operator-sandwich-release-count)(textobj-sandwich-auto-a)', silent = true }, - { 'cs', '(operator-sandwich-replace)(operator-sandwich-release-count)(textobj-sandwich-query-a)', silent = true }, - { 'css', '(operator-sandwich-replace)(operator-sandwich-release-count)(textobj-sandwich-auto-a)', silent = true }, - { 'sa', '(operator-sandwich-add)', silent = true, mode = { 'n', 'x', 'o' }}, - { 'ir', '(textobj-sandwich-auto-i)', silent = true, mode = { 'x', 'o' }}, - { 'ab', '(textobj-sandwich-auto-a)', silent = true, mode = { 'x', 'o' }}, + { 'sd', '(operator-sandwich-delete)(operator-sandwich-release-count)(textobj-sandwich-query-a)', silent = true }, + { 'ssd', '(operator-sandwich-delete)(operator-sandwich-release-count)(textobj-sandwich-auto-a)', silent = true }, + { 'sc', '(operator-sandwich-replace)(operator-sandwich-release-count)(textobj-sandwich-query-a)', silent = true }, + { 'ssc', '(operator-sandwich-replace)(operator-sandwich-release-count)(textobj-sandwich-auto-a)', silent = true }, + { 'sa', '(operator-sandwich-add)', silent = true, mode = { 'n', 'x', 'o' }}, + { 'ir', '(textobj-sandwich-auto-i)', silent = true, mode = { 'x', 'o' }}, + { 'ab', '(textobj-sandwich-auto-a)', silent = true, mode = { 'x', 'o' }}, }, init = function() vim.g.sandwich_no_default_key_mappings = 1 diff --git a/spell/en.utf-8.add b/spell/en.utf-8.add index 203eea6..0aa9cd9 100644 --- a/spell/en.utf-8.add +++ b/spell/en.utf-8.add @@ -62,3 +62,5 @@ Qroczhreer Blokhof Hauck spiderous +zlib +experimentelle diff --git a/spell/en.utf-8.add.spl b/spell/en.utf-8.add.spl index 12d1f6d335b970ab3f872720781ec74c35ba09a3..87a570522449d1f1d4894d116ce7a40fb6c151f6 100644 GIT binary patch delta 171 zcmcb^*1*me=IL8pkeZWY^q+x&DRUy zk#}+hlbqm12#-Ov7-$PnG-L8|CTqs1$&Z=zMVV4_7>j`rC>)gtv=nHOYSLsmW;*~$ Cl`5$K delta 160 zcmZo*zr)5C=IL8pkeZWY^q+x&$#){(QXa+}#uUa>Mn(n(n~zT%V$o_2MQ&CB~;5n p(z~F_REvR%7#SD?Cm&+6W^|tXk4c{gXiPB>0!5t@Cp$6Q0RSPvDAxc0