Nvim: use iswap

This commit is contained in:
2022-05-08 22:46:36 +02:00
parent 182f65a57c
commit 2f17dc49b9
3 changed files with 20 additions and 14 deletions

View File

@@ -0,0 +1,5 @@
require('iswap').setup{}
local opts = { noremap=true, silent=true }
vim.api.nvim_set_keymap('n', 'ta', '<cmd>ISwapWith<cr>', opts)
vim.api.nvim_set_keymap('n', 'tn', '<cmd>ISwap<cr>', opts)

View File

@@ -37,17 +37,17 @@ ts.setup {
-- colors = {}, -- table of hex strings -- colors = {}, -- table of hex strings
-- termcolors = {} -- table of colour name strings -- termcolors = {} -- table of colour name strings
}, },
textobjects = { --textobjects = {
swap = { -- swap = {
enable = true, -- enable = true,
swap_next = { -- swap_next = {
["tan"] = "@parameter.inner", -- ["tan"] = "@parameter.inner",
}, -- },
swap_previous = { -- swap_previous = {
["tap"] = "@parameter.inner", -- ["tap"] = "@parameter.inner",
}, -- },
}, -- },
}, --},
matchup = { matchup = {
enable = true, enable = true,
-- disable = { "c", "ruby" }, -- disable = { "c", "ruby" },

View File

@@ -24,10 +24,11 @@ Plug 'RRethy/vim-illuminate'
"Plug 'ms-jpq/coq.thirdparty', {'branch': '3p'} "Plug 'ms-jpq/coq.thirdparty', {'branch': '3p'}
"Plug 'dbeniamine/cheat.sh-vim' "Plug 'dbeniamine/cheat.sh-vim'
Plug 'puremourning/vimspector' "Plug 'puremourning/vimspector'
"Plug 'vim-test/vim-test' "Plug 'vim-test/vim-test'
Plug 'lukas-reineke/indent-blankline.nvim' Plug 'lukas-reineke/indent-blankline.nvim'
Plug 'liuchengxu/vista.vim' Plug 'liuchengxu/vista.vim'
Plug 'ggandor/leap.nvim'
Plug 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'} Plug 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'}
Plug 'nvim-treesitter/playground' Plug 'nvim-treesitter/playground'
@@ -38,6 +39,7 @@ Plug 'romgrk/nvim-treesitter-context'
Plug 'cdelledonne/vim-cmake' Plug 'cdelledonne/vim-cmake'
Plug 'andymass/vim-matchup' Plug 'andymass/vim-matchup'
Plug 'folke/which-key.nvim'
" }}} " }}}
" Completion {{{ " Completion {{{
@@ -114,11 +116,10 @@ Plug 'marko-cerovac/material.nvim'
" Testing phase {{{ " Testing phase {{{
Plug 'nvim-neorg/neorg' Plug 'nvim-neorg/neorg'
Plug 'jubnzv/virtual-types.nvim' Plug 'jubnzv/virtual-types.nvim'
Plug 'folke/which-key.nvim'
Plug 'https://gitlab.com/yorickpeterse/nvim-window.git' Plug 'https://gitlab.com/yorickpeterse/nvim-window.git'
Plug 'themercorp/themer.lua' Plug 'themercorp/themer.lua'
Plug 'ggandor/leap.nvim'
Plug 'mfussenegger/nvim-dap' Plug 'mfussenegger/nvim-dap'
Plug 'mizlan/iswap.nvim'
" }}} " }}}
call plug#end() call plug#end()