Compare commits
5 commits
8dcc611134
...
8f0516bdbd
Author | SHA1 | Date | |
---|---|---|---|
8f0516bdbd | |||
|
7887bbfb65 | ||
e6176bad3e | |||
2634786dcb | |||
63019107f1 |
6 changed files with 16 additions and 9 deletions
1
init.lua
1
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' },
|
||||
|
|
|
@ -131,7 +131,7 @@ map('i', '<S-Return>', '<C-o>o', { desc = 'Start Newline' })
|
|||
map('n', '<leader>jj', ':join<CR>g$', { desc = 'Join lines', silent = true })
|
||||
map('n', '<leader>jJ', 'k:join<CR>j', { desc = 'Join lines', silent = true })
|
||||
map('n', '<leader>ss', 'i<CR><ESC>', { desc = 'Split lines', silent = true })
|
||||
map('n', '<leader>sS', 'i<CR><ESC>k', { desc = 'Split lines', silent = true })
|
||||
map('n', '<leader>sS', 'i<CR><ESC>kg$', { desc = 'Split lines', silent = true })
|
||||
|
||||
-- Re-select blocks after indenting in visual/select mode
|
||||
map('x', '<', '<gv', { desc = 'Indent Right and Re-select' })
|
||||
|
|
|
@ -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', '<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 },
|
||||
{ 'cs', '<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 },
|
||||
{ 'sa', '<Plug>(operator-sandwich-add)', silent = true, mode = { 'n', 'x', 'o' }},
|
||||
{ 'ir', '<Plug>(textobj-sandwich-auto-i)', silent = true, mode = { 'x', 'o' }},
|
||||
{ 'ab', '<Plug>(textobj-sandwich-auto-a)', silent = true, mode = { 'x', 'o' }},
|
||||
{ '<leader>sd', '<Plug>(operator-sandwich-delete)<Plug>(operator-sandwich-release-count)<Plug>(textobj-sandwich-query-a)', silent = true },
|
||||
{ '<leader>ssd', '<Plug>(operator-sandwich-delete)<Plug>(operator-sandwich-release-count)<Plug>(textobj-sandwich-auto-a)', silent = true },
|
||||
{ '<leader>sc', '<Plug>(operator-sandwich-replace)<Plug>(operator-sandwich-release-count)<Plug>(textobj-sandwich-query-a)', silent = true },
|
||||
{ '<leader>ssc', '<Plug>(operator-sandwich-replace)<Plug>(operator-sandwich-release-count)<Plug>(textobj-sandwich-auto-a)', silent = true },
|
||||
{ '<leader>sa', '<Plug>(operator-sandwich-add)', silent = true, mode = { 'n', 'x', 'o' }},
|
||||
{ '<leader>ir', '<Plug>(textobj-sandwich-auto-i)', silent = true, mode = { 'x', 'o' }},
|
||||
{ '<leader>ab', '<Plug>(textobj-sandwich-auto-a)', silent = true, mode = { 'x', 'o' }},
|
||||
},
|
||||
init = function()
|
||||
vim.g.sandwich_no_default_key_mappings = 1
|
||||
|
|
|
@ -16,7 +16,7 @@ return {
|
|||
-- FIXME: This shouldn't be in the Versioncontrol. Make this
|
||||
-- into a local extension of the plugin.
|
||||
main = "~/Nextcloud/Neorg",
|
||||
notes = "~/Nextcloud/Notes",
|
||||
notes = "~/Nextcloud/Notizen",
|
||||
},
|
||||
},
|
||||
},
|
||||
|
|
|
@ -62,3 +62,7 @@ Qroczhreer
|
|||
Blokhof
|
||||
Hauck
|
||||
spiderous
|
||||
zlib
|
||||
experimentelle
|
||||
SHA
|
||||
Etablierungs
|
||||
|
|
Binary file not shown.
Loading…
Add table
Reference in a new issue