diff options
Diffstat (limited to 'pkgs/custom-neovim/config/lua')
| -rw-r--r-- | pkgs/custom-neovim/config/lua/mappings.lua | 2 | ||||
| -rw-r--r-- | pkgs/custom-neovim/config/lua/plugins/focus.lua | 10 | ||||
| -rw-r--r-- | pkgs/custom-neovim/config/lua/plugins/incline.lua | 3 |
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 }, |
