From 80db7e8470b9ea909188724e7c3f61a7baf6c36c Mon Sep 17 00:00:00 2001 From: Pratik Tripathy Date: Mon, 13 Oct 2025 19:20:13 +0530 Subject: [PATCH] style(neovim): Better comments, consistent position for `keys`, remove spurious lines --- common/.config/nvim/lua/plugins/git.lua | 1 - common/.config/nvim/lua/plugins/ui.lua | 16 ++++++++-------- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/common/.config/nvim/lua/plugins/git.lua b/common/.config/nvim/lua/plugins/git.lua index 9e622ba..5832acc 100644 --- a/common/.config/nvim/lua/plugins/git.lua +++ b/common/.config/nvim/lua/plugins/git.lua @@ -17,7 +17,6 @@ return { { "sindrets/diffview.nvim", keys = { - { "gD", "DiffviewOpen", desc = "Git: Diffview Project against index/staging", mode = { "n" } }, }, }, diff --git a/common/.config/nvim/lua/plugins/ui.lua b/common/.config/nvim/lua/plugins/ui.lua index 3df94f9..1144237 100644 --- a/common/.config/nvim/lua/plugins/ui.lua +++ b/common/.config/nvim/lua/plugins/ui.lua @@ -29,13 +29,6 @@ return { { "akinsho/bufferline.nvim", event = "VeryLazy", - keys = { - { "bp", "BufferLineTogglePin", desc = "Toggle buffer-pin" }, - { "bX", "BufferLineCloseOthers", desc = "Close other buffers" }, - { "xo", "BufferLineCloseOthers", desc = "Close other buffers" }, - { "[b", "BufferLineCyclePrev", desc = "Prev buffer" }, - { "]b", "BufferLineCycleNext", desc = "Next buffer" }, - }, opts = { options = { close_command = function(n) @@ -79,6 +72,13 @@ return { end, }) end, + keys = { + { "bp", "BufferLineTogglePin", desc = "Toggle buffer-pin" }, + { "bX", "BufferLineCloseOthers", desc = "Close other buffers" }, + { "xo", "BufferLineCloseOthers", desc = "Close other buffers" }, + { "[b", "BufferLineCyclePrev", desc = "Prev buffer" }, + { "]b", "BufferLineCycleNext", desc = "Next buffer" }, + }, }, -- Completely replaces the UI for messages, cmdline and the popupmenu. @@ -113,7 +113,7 @@ return { opts = { skin = true }, }, { - -- Direct some messages to bottom - obove lualine + -- Direct some messages to bottom - obove statusline view = "mini", filter = { event = "msg_show",