NixOS configuration 🪄

⚡️ [Neovim] imrpoved lsp and cmp configuration

Signed-off-by: Xaiya Schumin <d.schumin@proton.me>

+24
+17
modules/home/cli/neovim/default.nix
··· 179 179 }; 180 180 181 181 completion = { 182 + trigger.show_on_keyboard = true; 182 183 ghost_text.enabled = true; 184 + 183 185 list.cycle = { 184 186 from_bottom = false; 185 187 from_top = false; 186 188 }; 189 + 190 + menu = { 191 + scrolloff = 0; 192 + border = "none"; 193 + draw = { 194 + padding = 1; 195 + gap = 1; 196 + treesitter = [ "lsp" "buffer" ]; 197 + 198 + }; 199 + }; 200 + }; 201 + 202 + sources = { 203 + default = [ "lsp" "path" "snippets" "buffer" ]; 187 204 }; 188 205 }; 189 206 };
+7
modules/home/cli/neovim/lsp.nix
··· 14 14 }; 15 15 16 16 emmet_language_server = { 17 + enable = true; 18 + 17 19 filetypes = [ 18 20 "css" 19 21 "html" ··· 24 26 "scss" 25 27 "typescriptreact" 26 28 ]; 29 + }; 30 + 31 + ts_ls = { 32 + enable = true; 33 + filetypes = [ "ts" "js" ]; 27 34 }; 28 35 29 36 html.enable = true;