From 52981fda4b8251c560f228f94ca6631ef3059905 Mon Sep 17 00:00:00 2001 From: harry123 Date: Mon, 7 Jul 2025 22:30:35 +0200 Subject: [PATCH] fixes and added dependencies - fix the shortcut to change tab - added `fzf`, `gcc`, `git`, `lazygit`, and `rg` dependencies - added even more lsps --- config/config.nix | 9 +++++++++ config/keys.nix | 19 +++++++++++++------ config/plugins.nix | 6 +++++- 3 files changed, 27 insertions(+), 7 deletions(-) diff --git a/config/config.nix b/config/config.nix index c715570..edab157 100644 --- a/config/config.nix +++ b/config/config.nix @@ -45,4 +45,13 @@ virtual_text = false; virtual_line = true; }; + + dependencies = { + fzf.enable = true; + gcc.enable = true; + git.enable = true; + lazygit.enable = true; + tree-sitter.enable = true; + ripgrep.enable = true; + }; } diff --git a/config/keys.nix b/config/keys.nix index f8d075a..add5329 100644 --- a/config/keys.nix +++ b/config/keys.nix @@ -14,7 +14,7 @@ { mode = "n"; action = "BufferNext"; - key = ""; + key = ""; options = { desc = "Next buffer"; }; @@ -23,7 +23,7 @@ { mode = "n"; action = "BufferPrevious"; - key = ""; + key = ""; options = { desc = "Previous buffer"; }; @@ -33,7 +33,7 @@ { mode = "n"; action = "BufferMovePrevious"; - key = "H"; + key = "H"; options = { desc = "Move buffer to left"; }; @@ -42,7 +42,7 @@ { mode = "n"; action = "BufferMoveNext"; - key = "L"; + key = "L"; options = { desc = "Move buffer to right"; }; @@ -67,6 +67,13 @@ }; } + # grug.nvim + { + mode = "n"; + action = "GrugFar"; + key = "cr"; + } + # lazygit { mode = "n"; action = "LazyGit"; @@ -91,7 +98,7 @@ { mode = "n"; action = { - __raw = "function() require('dap') end"; + __raw = "function() require('dap').toggle_breakpoint() end"; }; key = "ds"; options = { @@ -132,7 +139,7 @@ plugins.fzf-lua.keymaps = { "/" = "live_grep"; "" = "files"; - "fg" = "git_files"; + "gf" = "git_files"; "," = "buffers"; }; } diff --git a/config/plugins.nix b/config/plugins.nix index 27287bc..f4b90e9 100644 --- a/config/plugins.nix +++ b/config/plugins.nix @@ -23,6 +23,7 @@ clangd = { enable = true; }; + astro.enable = true; }; }; @@ -115,7 +116,10 @@ enable = true; }; - lualine.enable = true; + lualine = { + enable = true; + settings.options.theme = "ayu_light"; + }; neotest = { enable = true;