| ... | @@ -1,9 +1,5 @@ | ... | @@ -1,9 +1,5 @@ |
| | 1 | { config, lib, ... }: |
| 1 | { | 2 | { |
| 2 | config, | | |
| 3 | lib, | | |
| 4 | host, | | |
| 5 | ... | | |
| 6 | }: { | | |
| 7 | # based on default options from upstream: | 3 | # based on default options from upstream: |
| 8 | # https://github.com/NotAShelf/nvf/blob/main/configuration.nix | 4 | # https://github.com/NotAShelf/nvf/blob/main/configuration.nix |
| 9 | # | 5 | # |
| ... | @@ -45,6 +41,10 @@ | ... | @@ -45,6 +41,10 @@ |
| 45 | # https://github.com/onsails/lspkind.nvim | 41 | # https://github.com/onsails/lspkind.nvim |
| 46 | lspkind.enable = config.vim.autocomplete.blink-cmp.enable; | 42 | lspkind.enable = config.vim.autocomplete.blink-cmp.enable; |
| 47 | }; | 43 | }; |
| | 44 | treesitter = { |
| | 45 | enable = true; |
| | 46 | addDefaultGrammars = true; |
| | 47 | }; |
| 48 | debugger = { | 48 | debugger = { |
| 49 | nvim-dap = { | 49 | nvim-dap = { |
| 50 | enable = true; | 50 | enable = true; |
| ... | @@ -57,17 +57,17 @@ | ... | @@ -57,17 +57,17 @@ |
| 57 | enableExtraDiagnostics = true; | 57 | enableExtraDiagnostics = true; |
| 58 | | 58 | |
| 59 | # sort-lines: on | 59 | # sort-lines: on |
| 60 | assembly.enable = true; | | |
| 61 | bash.enable = true; | 60 | bash.enable = true; |
| 62 | clang.enable = true; | 61 | clang.enable = true; |
| 63 | css.enable = true; | 62 | css.enable = true; |
| 64 | html.enable = true; | 63 | html.enable = true; |
| | 64 | markdown.enable = true; |
| 65 | nix.enable = true; | 65 | nix.enable = true; |
| | 66 | python.enable = true; |
| 66 | rust.crates.enable = true; | 67 | rust.crates.enable = true; |
| 67 | rust.enable = true; | 68 | rust.enable = true; |
| 68 | ts.enable = true; | 69 | ts.enable = true; |
| 69 | zig.enable = true; | 70 | zig.enable = true; |
| 70 | markdown.enable = true; | | |
| 71 | # sort-lines: off | 71 | # sort-lines: off |
| 72 | | 72 | |
| 73 | nix.format.type = "nixfmt"; # looks so much nicer | 73 | nix.format.type = "nixfmt"; # looks so much nicer |
| ... | @@ -107,19 +107,24 @@ | ... | @@ -107,19 +107,24 @@ |
| 107 | bigfile.enable = true; | 107 | bigfile.enable = true; |
| 108 | explorer.replace_netrw = true; | 108 | explorer.replace_netrw = true; |
| 109 | dashboard = { | 109 | dashboard = { |
| 110 | sections = [ | 110 | preset.keys = [ |
| 111 | {section = "header";} | | |
| 112 | { | 111 | { |
| 113 | icon = " "; | 112 | icon = " "; |
| 114 | title = "Keymaps"; | 113 | key = "n"; |
| 115 | section = "keys"; | 114 | desc = "New File"; |
| 116 | indent = 2; | 115 | action = ":ene | startinsert"; |
| 117 | padding = 1; | | |
| 118 | } | 116 | } |
| 119 | { | 117 | { |
| 120 | icon = " "; | 118 | icon = " "; |
| 121 | title = "Recent Files"; | 119 | key = "r"; |
| 122 | section = "recent_files"; | 120 | desc = "Recent Files"; |
| | 121 | action = ":lua Snacks.dashboard.pick('oldfiles')"; |
| | 122 | } |
| | 123 | ]; |
| | 124 | sections = [ |
| | 125 | { section = "header"; } |
| | 126 | { |
| | 127 | section = "keys"; |
| 123 | indent = 2; | 128 | indent = 2; |
| 124 | padding = 1; | 129 | padding = 1; |
| 125 | } | 130 | } |
| ... | @@ -130,6 +135,21 @@ | ... | @@ -130,6 +135,21 @@ |
| 130 | indent = 2; | 135 | indent = 2; |
| 131 | padding = 1; | 136 | padding = 1; |
| 132 | } | 137 | } |
| | 138 | { |
| | 139 | icon = " "; |
| | 140 | title = "Git"; |
| | 141 | section = "terminal"; |
| | 142 | enabled = lib.options.literalExpression '' |
| | 143 | function() |
| | 144 | return Snacks.git.get_root() ~= nil |
| | 145 | end |
| | 146 | ''; |
| | 147 | cmd = "git status --short --branch --renames"; |
| | 148 | height = 10; |
| | 149 | padding = 1; |
| | 150 | ttl = 5 * 60; |
| | 151 | indent = 3; |
| | 152 | } |
| 133 | ]; | 153 | ]; |
| 134 | }; | 154 | }; |
| 135 | image.enable = true; | 155 | image.enable = true; |
| ... | @@ -137,7 +157,7 @@ | ... | @@ -137,7 +157,7 @@ |
| 137 | picker = { | 157 | picker = { |
| 138 | enable = true; | 158 | enable = true; |
| 139 | sources = { | 159 | sources = { |
| 140 | explorer = {}; | 160 | explorer = { }; |
| 141 | }; | 161 | }; |
| 142 | }; | 162 | }; |
| 143 | }; | 163 | }; |