|
1 |
| -{ config, pkgs, ... }: { |
| 1 | +{ pkgs, ... }: { |
2 | 2 | # Issues:
|
3 | 3 | # - Run python script with args/env (nvim-iron?)
|
4 | 4 | # - Set up nvim-dap
|
|
48 | 48 | comment = {
|
49 | 49 | enable = true;
|
50 | 50 | settings = {
|
51 |
| - toggler = { |
52 |
| - line = "<C-/>"; |
53 |
| - # block = "<C-/>"; # TODO: Fix this |
54 |
| - }; |
55 |
| - mappings = { |
56 |
| - basic = false; |
57 |
| - extra = false; |
58 |
| - }; |
| 51 | + mappings.extra = false; |
| 52 | + opleader.line = "<C-/>"; # Ctrl-/ |
| 53 | + toggler.line = "<C-/>"; # Ctrl-/ |
59 | 54 | };
|
60 | 55 | };
|
61 | 56 | multicursors.enable = true;
|
|
74 | 69 | # };
|
75 | 70 | # rustaceanvim.enable = true;
|
76 | 71 | # https://github.com/MikaelFangel/nixvim-config/blob/main/config/cmp.nix
|
77 |
| - cmp = { |
| 72 | + blink-cmp = { |
78 | 73 | enable = true;
|
79 | 74 | settings = {
|
80 |
| - # experimental.ghost_text = true; |
81 |
| - mapping = { |
82 |
| - "<C-Space>" = "cmp.mapping.complete()"; |
83 |
| - "<C-d>" = "cmp.mapping.scroll_docs(-4)"; |
84 |
| - "<C-e>" = "cmp.mapping.close()"; |
85 |
| - "<C-f>" = "cmp.mapping.scroll_docs(4)"; |
86 |
| - "<CR>" = "cmp.mapping.confirm({ select = true })"; |
87 |
| - "<S-Tab>" = "cmp.mapping(cmp.mapping.select_prev_item(), {'i', 's'})"; |
88 |
| - "<Tab>" = "cmp.mapping(cmp.mapping.select_next_item(), {'i', 's'})"; |
89 |
| - }; |
90 | 75 | completion = {
|
91 |
| - completeopt = "menu,menuone,noinsert,noselect"; |
| 76 | + documentation.auto_show = true; |
| 77 | + ghost_text.enabled = true; |
92 | 78 | };
|
93 |
| - sources = [ |
94 |
| - { name = "nvim_lsp"; } |
95 |
| - { name = "treesitter"; } |
96 |
| - { |
97 |
| - name = "buffer"; |
98 |
| - option.get_bufnrs.__raw = "vim.api.nvim_list_bufs"; |
99 |
| - } |
100 |
| - { name = "nvim_lua"; } |
101 |
| - { name = "path"; } |
102 |
| - # { name = "copilot"; } |
103 |
| - ]; |
| 79 | + signature.enabled = true; |
104 | 80 | };
|
105 | 81 | };
|
106 | 82 |
|
|
119 | 95 | ruff.enable = true;
|
120 | 96 | rust_analyzer = {
|
121 | 97 | enable = true;
|
122 |
| - installCargo = false; |
123 |
| - installRustc = false; |
| 98 | + installCargo = true; |
| 99 | + installRustc = true; |
| 100 | + installRustfmt = true; |
124 | 101 | };
|
125 | 102 | ts_ls.enable = true;
|
126 | 103 | };
|
|
130 | 107 | enable = true;
|
131 | 108 | keymaps = {
|
132 | 109 | "<A-f>" = "find_files";
|
133 |
| - "<C-F>" = "live_grep"; |
134 |
| - "<A-r>" = "commands"; |
| 110 | + "<A-j>" = "lsp_document_symbols"; |
| 111 | + "<A-r>" = "command_history"; |
135 | 112 | "<A-z>" = "zoxide list";
|
136 | 113 | "<A-Tab>" = "buffers";
|
| 114 | + "<C-F>" = "live_grep"; |
| 115 | + "<C-Z>" = "undo"; |
137 | 116 | };
|
138 | 117 |
|
139 | 118 | extensions = {
|
140 | 119 | fzf-native.enable = true;
|
141 | 120 | zoxide.enable = true;
|
142 | 121 | ui-select.enable = true;
|
| 122 | + undo.enable = true; |
143 | 123 | };
|
144 | 124 | };
|
145 | 125 |
|
|
179 | 159 | };
|
180 | 160 | };
|
181 | 161 |
|
| 162 | + noice = { |
| 163 | + enable = true; |
| 164 | + settings = { |
| 165 | + lsp = { |
| 166 | + progress = { |
| 167 | + enabled = true; |
| 168 | + throttle = 100; |
| 169 | + }; |
| 170 | + override = { |
| 171 | + "vim.lsp.util.convert_input_to_markdown_lines" = true; |
| 172 | + "vim.lsp.util.stylize_markdown" = true; |
| 173 | + }; |
| 174 | + }; |
| 175 | + presets = { |
| 176 | + bottom_search = true; |
| 177 | + command_palette = true; |
| 178 | + long_message_to_split = true; |
| 179 | + inc_rename = true; |
| 180 | + }; |
| 181 | + }; |
| 182 | + }; |
| 183 | + |
182 | 184 | web-devicons.enable = true; # Telescope dep
|
183 | 185 | };
|
184 | 186 |
|
185 | 187 | keymaps = [
|
186 |
| - { key = "<C-Up>"; action = "<CMD>move +1<CR>"; } |
187 |
| - { key = "<C-Down>"; action = "<CMD>move -1<CR>"; } |
| 188 | + { key = "<C-Up>"; action = "<CMD>move -2<CR>"; } |
| 189 | + { key = "<C-Down>"; action = "<CMD>move +1<CR>"; } |
188 | 190 | ];
|
189 | 191 |
|
190 | 192 | extraPlugins = with pkgs.vimPlugins; [ vim-airline-themes ];
|
|
199 | 201 | withPython3 = true;
|
200 | 202 |
|
201 | 203 | performance = {
|
202 |
| - byteCompileLua = { |
203 |
| - enable = true; |
204 |
| - nvimRuntime = true; |
205 |
| - luaLib = true; |
206 |
| - plugins = true; |
207 |
| - }; |
| 204 | + # byteCompileLua = { |
| 205 | + # enable = true; |
| 206 | + # nvimRuntime = true; |
| 207 | + # luaLib = true; |
| 208 | + # plugins = true; |
| 209 | + # }; |
208 | 210 | };
|
209 | 211 | };
|
210 | 212 |
|
|
0 commit comments