Skip to content

Commit

Permalink
🔧 (buffers): rework navigation
Browse files Browse the repository at this point in the history
  • Loading branch information
elythh committed Sep 30, 2024
1 parent 28e9872 commit 4192cf1
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 3 deletions.
2 changes: 1 addition & 1 deletion config/keys.nix
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@
{
mode = "n";
key = "<Tab>";
action = "<CMD>bnext<CR>";
action = "<CMD>Telescope buffers sort_mru=true sort_lastused=true initial_mode=normal<CR>";
options = {
desc = "Next buffer";
};
Expand Down
11 changes: 11 additions & 0 deletions config/plug/ui/telescope.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
"<leader><space>" = {
Expand Down
2 changes: 1 addition & 1 deletion config/plug/utils/mini.nix
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
notify = { };
pairs = { };
surround = { };
tabline = { };
# tabline = { };
trailspace = { };
hipatterns = {
highlighters = {
Expand Down
2 changes: 1 addition & 1 deletion config/sets.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4192cf1

Please sign in to comment.