summaryrefslogtreecommitdiff
path: root/pkgs/custom-neovim/config/lua
diff options
context:
space:
mode:
authortriethyl <triethylammonium@pm.me>2025-08-13 22:40:29 -0400
committertriethyl <triethylammonium@pm.me>2025-08-13 22:40:29 -0400
commitad1329bf205454a8b13110475687775a8456f787 (patch)
tree84c72324a46915cefd7eb7cd6b3583c1eeaf03f7 /pkgs/custom-neovim/config/lua
parent0f588b826771f4843e28531cb503403a0785ae57 (diff)
neovim: bunch of stuff
Diffstat (limited to 'pkgs/custom-neovim/config/lua')
-rw-r--r--pkgs/custom-neovim/config/lua/mappings.lua2
-rw-r--r--pkgs/custom-neovim/config/lua/plugins/focus.lua10
-rw-r--r--pkgs/custom-neovim/config/lua/plugins/incline.lua3
3 files changed, 13 insertions, 2 deletions
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", "<leader>b", "Manage buffers", "")
mapkey("n", "<leader>bb", "Go to next buffer", ":bn<cr>")
mapkey("n", "<leader>bB", "Go to previous buffer", ":bp<cr>")
mapkey("n", "<leader>bd", "Delete current buffer", ":bd<cr>")
-mapkey("n", "<leader>bd", "Force delete current buffer", ":bd!<cr>")
+mapkey("n", "<leader>bD", "Force delete current buffer", ":bd!<cr>")
mapkey("n", "<leader>bp", "Open buffer picker", ":lua Snacks.picker.buffers()<cr>")
mapkey("n", "<leader>bg", "Open buffer live grep picker", ":lua Snacks.picker.grep_buffers()<cr>")
mapkey("n", "<leader>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 },