vim: remove split-term config

This commit is contained in:
Sean Buckley 2024-09-29 18:47:19 -04:00
parent 4fa6ca3527
commit 4d152339e8

View file

@ -27,21 +27,6 @@ vim.keymap.set('n', "<C-Down>", "<cmd>resize +2<cr>")
vim.keymap.set('n', "<C-Left>", "<cmd>vertical resize -2<cr>") vim.keymap.set('n', "<C-Left>", "<cmd>vertical resize -2<cr>")
vim.keymap.set('n', "<C-Right>", "<cmd>vertical resize +2<cr>") vim.keymap.set('n', "<C-Right>", "<cmd>vertical resize +2<cr>")
vim.keymap.set('n', "<C-/>", "<cmd>:terminal<cr>")
vim.keymap.set('n', "<C-_>", "<cmd>:terminal<cr>") -- This is Ctrl+/ on some terminals?
vim.cmd("autocmd TermOpen * setlocal nonumber norelativenumber signcolumn=no")
for _, key in pairs({ 'h', 'j', 'k', 'l' }) do
for _, mod in pairs({ 'C', 'A' }) do
vim.keymap.set(
't',
'<' .. mod .. '-' .. key .. '>',
'<C-\\><C-n><' .. mod .. '-' .. key .. '>',
{ remap = true }
)
end
end
vim.api.nvim_create_autocmd('TextYankPost', { vim.api.nvim_create_autocmd('TextYankPost', {
callback = function() callback = function()
vim.highlight.on_yank() vim.highlight.on_yank()