diff --git a/config/keys.nix b/config/keys.nix index 85a3a94..e361842 100644 --- a/config/keys.nix +++ b/config/keys.nix @@ -400,7 +400,7 @@ { mode = "n"; key = ""; - action = "bnext"; + action = "Telescope buffers sort_mru=true sort_lastused=true initial_mode=normal"; options = { desc = "Next buffer"; }; diff --git a/config/plug/ui/telescope.nix b/config/plug/ui/telescope.nix index c9f6b56..751c52a 100644 --- a/config/plug/ui/telescope.nix +++ b/config/plug/ui/telescope.nix @@ -30,6 +30,17 @@ enable_preview = true; }; }; + mappings = { + # This is not working, use Alt + the key instead 🤷 + n = { + "d" = { + __raw = "require('telescope.actions').delete_buffer"; + }; + "q" = { + __raw = "require('telescope.actions').close"; + }; + }; + }; }; keymaps = { "" = { diff --git a/config/plug/utils/mini.nix b/config/plug/utils/mini.nix index cf4a895..f5dcc45 100644 --- a/config/plug/utils/mini.nix +++ b/config/plug/utils/mini.nix @@ -21,7 +21,7 @@ notify = { }; pairs = { }; surround = { }; - tabline = { }; + # tabline = { }; trailspace = { }; hipatterns = { highlighters = { diff --git a/config/sets.nix b/config/sets.nix index 44de41d..3c71d4d 100644 --- a/config/sets.nix +++ b/config/sets.nix @@ -37,7 +37,7 @@ # Set tabs to 2 spaces tabstop = 2; softtabstop = 2; - showtabline = 2; + showtabline = 0; expandtab = true; # Enable auto indenting and set it to spaces