From a55fe2ade045d32b71f2260b63b5f5fd4bcc0f9b Mon Sep 17 00:00:00 2001 From: S4NKALP Date: Mon, 23 Mar 2026 15:11:34 +0545 Subject: [PATCH] update --- init.lua | 33 --------------------------------- lazy-lock.json | 1 + lua/plugins/coding.lua | 14 +++++++++----- lua/plugins/editor.lua | 17 +---------------- lua/plugins/util.lua | 13 +++++++++++++ lua/plugins/whichkey.lua | 6 ++++++ 6 files changed, 30 insertions(+), 54 deletions(-) diff --git a/init.lua b/init.lua index 28deffe..de6b89c 100644 --- a/init.lua +++ b/init.lua @@ -4,36 +4,3 @@ require('config.keys') require('config.autocmd') require('config.lazy') require('config.lsp') - -vim.cmd([[ -" -" Intelligently navigate tmux panes and Vim splits using the same keys. -" This also supports SSH tunnels where Vim is running on a remote host. -" -" See https://sunaku.github.io/tmux-select-pane.html for documentation. - -function! TmuxNavigateDirections() abort - let [y, x] = win_screenpos('.') - let h = winheight('.') - let w = winwidth('.') - - let can_go_up = y > 2 " +1 for the tabline - let can_go_down = y + h < &lines - &laststatus - let can_go_left = x > 1 - let can_go_right = x + w < &columns - - return - \ (can_go_up ? 'U' : '') . - \ (can_go_down ? 'D' : '') . - \ (can_go_left ? 'L' : '') . - \ (can_go_right ? 'R' : '') -endfunction - -let progname = substitute($VIM, '.*[/\\]', '', '') -set title titlestring=%{progname}\ %f\ #%{TmuxNavigateDirections()} - -" enable support for setting the window title in regular Vim under tmux -if &term =~ '^screen' && !has('nvim') - execute "set t_ts=\e]2; t_fs=\7" -endif -]]) diff --git a/lazy-lock.json b/lazy-lock.json index 2038647..2724479 100644 --- a/lazy-lock.json +++ b/lazy-lock.json @@ -1,6 +1,7 @@ { "Comment.nvim": { "branch": "master", "commit": "e30b7f2008e52442154b66f7c519bfd2f1e32acb" }, "LuaSnip": { "branch": "master", "commit": "5a1e39223db9a0498024a77b8441169d260c8c25" }, + "Navigator.nvim": { "branch": "master", "commit": "91d86506ac2a039504d5205d32a1d4bc7aa57072" }, "bento.nvim": { "branch": "main", "commit": "aee8a542bc1839ff1764992ef2aa41c981d0bba4" }, "better-escape.nvim": { "branch": "master", "commit": "19a38aab94961016430905ebec30d272a01e9742" }, "blink.cmp": { "branch": "main", "commit": "451168851e8e2466bc97ee3e026c3dcb9141ce07" }, diff --git a/lua/plugins/coding.lua b/lua/plugins/coding.lua index 9721ce8..f54be95 100644 --- a/lua/plugins/coding.lua +++ b/lua/plugins/coding.lua @@ -6,7 +6,16 @@ return { version = '*', config = function() require('blink.cmp').setup({ + fuzzy = { implementation = 'prefer_rust' }, + snippets = { preset = 'luasnip' }, + sources = { + default = { 'lsp', 'path', 'snippets', 'buffer' }, + providers = {}, + }, + completion = { + ghost_text = { enabled = true }, + list = { selection = { preselect = false, @@ -45,11 +54,6 @@ return { signature = { window = { border = 'rounded' }, }, - snippets = { preset = 'luasnip' }, - sources = { - default = { 'lsp', 'path', 'snippets', 'buffer' }, - providers = {}, - }, keymap = { preset = 'none', [''] = { 'select_prev', 'snippet_backward', 'fallback' }, diff --git a/lua/plugins/editor.lua b/lua/plugins/editor.lua index 1ab7a73..6a04514 100644 --- a/lua/plugins/editor.lua +++ b/lua/plugins/editor.lua @@ -13,21 +13,6 @@ return { cmd = { 'SudaRead', 'SudaWrite' }, }, - -- Undo History Visualizer - { - 'mbbill/undotree', - cmd = { 'UndotreeToggle' }, - keys = { { 'u', 'UndotreeToggle', desc = 'Undo Tree' } }, - config = function() - vim.g.undotree_WindowLayout = 2 - vim.g.undotree_SetFocusWhenToggle = 1 - vim.g.undotree_SplitWidth = 35 - vim.g.undotree_DiffpanelHeight = 15 - vim.g.undotree_DiffCommand = 'diff --unified=0' - -- vim.g.undotree_DiffCommand = "git diff --no-index --unified=0 --patience" - end, - }, - -- visual multi { 'mg979/vim-visual-multi', @@ -94,7 +79,7 @@ return { desc = 'Rename File', }, { - 'fx', + 'fz', function() require('genghis').chmodx() end, diff --git a/lua/plugins/util.lua b/lua/plugins/util.lua index ed6c0d3..b0f2fa7 100644 --- a/lua/plugins/util.lua +++ b/lua/plugins/util.lua @@ -92,4 +92,17 @@ return { -- }) -- end, }, + + -- navigator + { + 'numToStr/Navigator.nvim', + event = 'VeryLazy', + config = function() + require('Navigator').setup({ + auto_save = 'current', + disable_on_zoom = false, + mux = 'auto', + }) + end, + }, } diff --git a/lua/plugins/whichkey.lua b/lua/plugins/whichkey.lua index d609aa9..7bb67fe 100644 --- a/lua/plugins/whichkey.lua +++ b/lua/plugins/whichkey.lua @@ -274,6 +274,12 @@ return { { '', ':vertical resize +10', desc = 'Increase window width' }, { '', ':resize +10', desc = 'Increase window height' }, + { '', ':NavigatorLeft', desc = 'Move Left' }, + { '', ':NavigatorDown', desc = 'Move Down' }, + { '', ':NavigatorUp', desc = 'Move Up' }, + { '', ':NavigatorRight', desc = 'Move Right' }, + { '', ':NavigatorPrevious', desc = 'Previous Pane' }, + -- { '', ':bprevious', desc = 'Previous Buffer' }, -- { '', ':bnext', desc = 'Next Buffer' }, { '', ':bnext', desc = 'Next Buffer' },