mirror of
https://github.com/harish2704/dotFiles.git
synced 2026-09-10 07:11:09 +00:00
<Alt+1-9> for switching tabs
Remap terminal opening to <Leader>ts, tv & tf
change telescope.defaults.path_display = { "shorten" };
Add tab-switching and moving key map using Ctr+J/K similar to Ctrl+PageUp/Down
This commit is contained in:
@@ -11,3 +11,6 @@ key_bindings:
|
||||
- { key: Tab, mods: Shift, chars: "\e[Z" }
|
||||
- { key: Tab, mods: Control, chars: "\e[27;5;9~" }
|
||||
- { key: Tab, mods: Control|Shift, chars: "\e[27;6;9~" }
|
||||
- { key: J, mods: Control|Shift, chars: "\x1b[74;5u" }
|
||||
- { key: K, mods: Control|Shift, chars: "\x1b[75;5u" }
|
||||
|
||||
|
||||
@@ -25,6 +25,9 @@ lvim.keys.normal_mode['<C-p>'] = ":Telescope find_files<CR>"
|
||||
|
||||
-- lvim.keys.normal_mode["<S-l>"] = ":BufferLineCycleNext<CR>"
|
||||
-- lvim.keys.normal_mode["<S-h>"] = ":BufferLineCyclePrev<CR>"
|
||||
for i = 1, 9, 1 do
|
||||
lvim.keys.normal_mode["<M-" .. i .. ">"] = ":BufferLineGoToBuffer " .. i .. "<CR>"
|
||||
end
|
||||
|
||||
-- -- Use which-key to add extra bindings with the leader-key prefix
|
||||
-- lvim.builtin.which_key.mappings["W"] = { "<cmd>noautocmd w<cr>", "Save without formatting" }
|
||||
@@ -40,6 +43,13 @@ lvim.builtin.nvimtree.setup.view.side = "left"
|
||||
lvim.builtin.nvimtree.setup.renderer.icons.show.git = false
|
||||
|
||||
|
||||
|
||||
lvim.builtin.terminal.execs = {
|
||||
{ nil, "<Leader>ts", "Horizontal Terminal", "horizontal", 0.3 },
|
||||
{ nil, "<Leader>tv", "Vertical Terminal", "vertical", 0.4 },
|
||||
{ nil, "<Leader>tf", "Float Terminal", "float", nil },
|
||||
}
|
||||
|
||||
lvim.builtin.lualine.sections.lualine_b = { 'branch', '%f' }
|
||||
|
||||
|
||||
@@ -133,6 +143,9 @@ lvim.builtin.telescope.pickers.find_files.mappings = {
|
||||
['<C-t>'] = actions.smart_send_to_qflist + actions.open_qflist,
|
||||
}
|
||||
}
|
||||
lvim.builtin.telescope.defaults.path_display = { "shorten" };
|
||||
|
||||
|
||||
|
||||
vim.cmd([[
|
||||
command! -nargs=+ Gr :silent execute 'grep! -nr "<args>" | copen'
|
||||
@@ -219,6 +232,10 @@ nmap <C-PageUp> :BufferLineCyclePrev<CR>
|
||||
nmap <C-PageDown> :BufferLineCycleNext<CR>
|
||||
nmap <C-S-PageUp> :BufferLineMovePrev<CR>
|
||||
nmap <C-S-PageDown> :BufferLineMoveNext<CR>
|
||||
nmap <C-j> :BufferLineCyclePrev<CR>
|
||||
nmap <C-k> :BufferLineCycleNext<CR>
|
||||
nmap <C-S-j> :BufferLineMovePrev<CR>
|
||||
nmap <C-S-k> :BufferLineMoveNext<CR>
|
||||
|
||||
let g:user_emmet_mode='inv'
|
||||
let g:user_emmet_install_global = 0
|
||||
|
||||
Reference in New Issue
Block a user