diff --git a/config/config.nix b/config/config.nix index 489eb42..17340e7 100644 --- a/config/config.nix +++ b/config/config.nix @@ -19,6 +19,8 @@ smarttab = true; }; + clipboard.register = "unnamedplus"; + globals.mapleader = " "; autoCmd = [ diff --git a/config/keys.nix b/config/keys.nix index 4fd0f9e..1caa8aa 100644 --- a/config/keys.nix +++ b/config/keys.nix @@ -29,24 +29,24 @@ }; } -/* - { - mode = "n"; - action = "BufferMovePrevious"; - key = "H"; - options = { - desc = "Move buffer to left"; - }; - } + /* + { + mode = "n"; + action = "BufferMovePrevious"; + key = "H"; + options = { + desc = "Move buffer to left"; + }; + } - { - mode = "n"; - action = "BufferMoveNext"; - key = "L"; - options = { - desc = "Move buffer to right"; - }; - } + { + mode = "n"; + action = "BufferMoveNext"; + key = "L"; + options = { + desc = "Move buffer to right"; + }; + } */ { @@ -75,11 +75,14 @@ desc = "Open lazygit"; }; } + + # toggle comments ]; plugins.fzf-lua.keymaps = { "/" = "live_grep"; "" = "files"; "fg" = "git_files"; + "," = "buffers"; }; } diff --git a/config/plugins.nix b/config/plugins.nix index 4d7ad9c..d1a83cf 100644 --- a/config/plugins.nix +++ b/config/plugins.nix @@ -77,6 +77,12 @@ treesitter = { enable = true; + folding = true; + grammarPackages = pkgs.vimPlugins.nvim-treesitter.passthru.allGrammars; + + settings = { + auto_install = true; + }; }; web-devicons = {