added treesj

This commit is contained in:
Gabe Venberg 2023-03-20 19:42:31 -05:00
parent 484c48c916
commit 14e8f5a001
2 changed files with 23 additions and 7 deletions

View file

@ -99,10 +99,7 @@ end
local opts = { noremap = true, silent = true }
--toggle spell check
map('n', '<leader>sp', ':setlocal spell!<CR>', opts)
--[[ --easily create splits
map('n', '<leader>|', ':vs<CR>', opts) ]]
--[[ map('n', '<leader>-', ':sp<CR>', opts)
--use ctrl+direction to move between splits. ]]
--use ctrl+direction to move between splits.
map('n', '<C-h>', '<C-w>h', opts)
map('n', '<C-j>', '<C-w>j', opts)
map('n', '<C-k>', '<C-w>k', opts)
@ -144,4 +141,6 @@ vim.keymap.set("n", "<leader>xq", "<cmd>TroubleToggle quickfix<cr>", opts)
vim.keymap.set("n", "<leader>lR", "<cmd>TroubleToggle lsp_references<cr>", opts)
vim.keymap.set("n", "<leader>lD", "<cmd>TroubleToggle lsp_definitions<cr>", opts)
-- toggle keymappings for venn using <leader>v
vim.api.nvim_set_keymap('n', '<leader>v', ":lua Toggle_venn()<CR>", { noremap = true })
map('n', '<leader>v', ":lua Toggle_venn()<CR>", { noremap = true })
-- treesj
map('n', '<leader>j', ':TSJToggle<CR>', opts)

View file

@ -328,8 +328,6 @@ return require('packer').startup(function(use)
use 'chentau/marks.nvim'
use 'tversteeg/registers.nvim'
use {'lukas-reineke/indent-blankline.nvim',
config=function()
vim.opt.list = true
@ -349,6 +347,25 @@ return require('packer').startup(function(use)
end
}
use {
"tversteeg/registers.nvim",
config = function()
require("registers").setup()
end,
}
use { 'Wansmer/treesj',
requires = { 'nvim-treesitter' },
config = function()
require('treesj').setup({
-- Use default keymaps
-- (<space>m - toggle, <space>j - join, <space>s - split)
use_default_keymaps = false,
max_join_length = 256,
})
end,
}
use "jbyuki/venn.nvim"
--color scheme stuff.