diff options
| author | ozpv <39195175+ozpv@users.noreply.github.com> | 2024-12-25 16:00:46 -0600 |
|---|---|---|
| committer | ozpv <39195175+ozpv@users.noreply.github.com> | 2024-12-25 16:00:46 -0600 |
| commit | b91c620b20019e0602b03f592a041cef22a33b12 (patch) | |
| tree | 5a3d8c9f9a26ce83298056a4aabbd44f1602adab | |
| parent | 28b1a329a28b5a6e81b0a893d92cf1ab4d34035e (diff) | |
fix rust_analyzer error for now
| -rw-r--r-- | apps/nixvim.nix | 19 | ||||
| -rw-r--r-- | home.nix | 8 |
2 files changed, 16 insertions, 11 deletions
diff --git a/apps/nixvim.nix b/apps/nixvim.nix index 9440525..f5655bb 100644 --- a/apps/nixvim.nix +++ b/apps/nixvim.nix @@ -6,14 +6,23 @@ programs.nixvim = { enable = true; + # fix rust_analyzer error + extraConfigLua = "for _, method in ipairs({ 'textDocument/diagnostic', 'workspace/diagnostic' }) do + local default_diagnostic_handler = vim.lsp.handlers[method] + vim.lsp.handlers[method] = function(err, result, context, config) + if err ~= nil and err.code == -32802 then + return + end + return default_diagnostic_handler(err, result, context, config) + end +end"; + keymaps = [ - # Equivalent to nnoremap ; : { key = ";"; action = ":"; } - # Equivalent to nmap <silent> <buffer> <leader>gg <cmd>Man<CR> { key = "<leader>gg"; action = "<cmd>Man<CR>"; @@ -22,22 +31,18 @@ remap = false; }; } - # Etc... ]; globals.mapleader = " "; clipboard.register = "unnamedplus"; - # We can also set options: opts = { tabstop = 4; shiftwidth = 4; expandtab = false; mouse = "a"; - - # etc... }; plugins = { @@ -62,7 +67,7 @@ lsp = { enable = true; servers = { - tsserver.enable = true; + ts_ls.enable = true; lua_ls.enable = true; bashls.enable = true; html.enable = true; @@ -13,10 +13,10 @@ gtk.enable = true; - gtk.cursorTheme.package = pkgs.simp1e-cursors; - gtk.cursorTheme.name = "Simp1e-Gruvbox-Dark"; - gtk.theme.package = pkgs.gruvbox-dark-gtk; - gtk.theme.name = "gruvbox-dark"; + gtk.cursorTheme.package = pkgs.catppuccin-cursors.mochaDark; + gtk.cursorTheme.name = "catppuccin-mocha-dark-cursors"; + gtk.theme.package = pkgs.catppuccin-gtk; + gtk.theme.name = "catppuccin-gtk-theme-mocha"; nixpkgs.config.allowUnfree = true; |
