From ad1329bf205454a8b13110475687775a8456f787 Mon Sep 17 00:00:00 2001 From: triethyl Date: Wed, 13 Aug 2025 22:40:29 -0400 Subject: neovim: bunch of stuff --- pkgs/custom-neovim/config/lua/mappings.lua | 2 +- pkgs/custom-neovim/config/lua/plugins/focus.lua | 10 +++++++++- pkgs/custom-neovim/config/lua/plugins/incline.lua | 3 +++ 3 files changed, 13 insertions(+), 2 deletions(-) (limited to 'pkgs/custom-neovim/config/lua') diff --git a/pkgs/custom-neovim/config/lua/mappings.lua b/pkgs/custom-neovim/config/lua/mappings.lua index 569ad25..b763d05 100644 --- a/pkgs/custom-neovim/config/lua/mappings.lua +++ b/pkgs/custom-neovim/config/lua/mappings.lua @@ -33,7 +33,7 @@ mapkey("n", "b", "Manage buffers", "") mapkey("n", "bb", "Go to next buffer", ":bn") mapkey("n", "bB", "Go to previous buffer", ":bp") mapkey("n", "bd", "Delete current buffer", ":bd") -mapkey("n", "bd", "Force delete current buffer", ":bd!") +mapkey("n", "bD", "Force delete current buffer", ":bd!") mapkey("n", "bp", "Open buffer picker", ":lua Snacks.picker.buffers()") mapkey("n", "bg", "Open buffer live grep picker", ":lua Snacks.picker.grep_buffers()") mapkey("n", "bc", "Clear invisible buffers", function () diff --git a/pkgs/custom-neovim/config/lua/plugins/focus.lua b/pkgs/custom-neovim/config/lua/plugins/focus.lua index 915603e..560f3ce 100644 --- a/pkgs/custom-neovim/config/lua/plugins/focus.lua +++ b/pkgs/custom-neovim/config/lua/plugins/focus.lua @@ -1,10 +1,18 @@ require("focus").setup { enable = true, split = { - bufnew = true, + -- bufnew = true, }, ui = { winhighlight = true, -- Highlight focused and unfocused windows signcolumn = false, -- Signcolumn on all windows + -- cursorline = false, }, } + +vim.api.nvim_create_autocmd("WinEnter", { + pattern = "picker", + callback = function(args) + vim.b[args.buf].cursorline = false + end, +}) diff --git a/pkgs/custom-neovim/config/lua/plugins/incline.lua b/pkgs/custom-neovim/config/lua/plugins/incline.lua index b17a9c9..92ced03 100644 --- a/pkgs/custom-neovim/config/lua/plugins/incline.lua +++ b/pkgs/custom-neovim/config/lua/plugins/incline.lua @@ -1,5 +1,8 @@ local icons = require 'mini.icons' require('incline').setup { + hide = { + only_win = true, + }, window = { padding = 0, margin = { horizontal = 0 }, -- cgit v1.2.3