From 18107e2a1bff1c5ff3c4647adaa792906e1b2de1 Mon Sep 17 00:00:00 2001 From: qwjyh Date: Tue, 26 Dec 2023 10:43:46 +0900 Subject: [PATCH] new: nvim: H, L for gT, gt --- dotfiles/neovim/init.lua | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/dotfiles/neovim/init.lua b/dotfiles/neovim/init.lua index c984b9f..da5e70a 100644 --- a/dotfiles/neovim/init.lua +++ b/dotfiles/neovim/init.lua @@ -200,6 +200,9 @@ vim.opt.undofile = true -- Save undo history vim.o.completeopt = 'menuone,noselect' -- for better completion experience vim.o.termguicolors = true +vim.keymap.set('n', 'H', 'tabp', { desc = 'tab previous' }) +vim.keymap.set('n', 'L', 'tabn', { desc = 'tab next' }) + -- color scheme require('catppuccin').setup({ transparent_background = true, @@ -225,7 +228,7 @@ vim.keymap.set('t', 'l', 'l', if vim.fn.has('win32') == 1 then -- this evaluation is so slow that I removed windows powershell support -- if vim.fn.executable('pwsh') == 1 then - vim.opt.shell = 'pwsh' + vim.opt.shell = 'pwsh' -- else -- vim.opt.shell = 'powershell' -- end @@ -322,7 +325,7 @@ require('lualine_setup') -- telescope local builtin = require('telescope.builtin') vim.keymap.set('n', '', function() builtin.find_files { sort_lastused = true } end) -- fd? -vim.keymap.set('n', 'ff', function() builtin.find_files { sort_lastused = true } end, { desc = "find files"}) +vim.keymap.set('n', 'ff', function() builtin.find_files { sort_lastused = true } end, { desc = "find files" }) vim.keymap.set('n', 'fw', builtin.lsp_workspace_symbols, { desc = "lsp workspace symbols" }) vim.keymap.set('n', 'fd', builtin.lsp_document_symbols, { desc = "lsp document symbols" }) vim.keymap.set('n', 'fb', builtin.buffers, { desc = "buffers" })