diff options
author | Minijackson <minijackson@riseup.net> | 2024-01-23 18:33:50 +0100 |
---|---|---|
committer | Minijackson <minijackson@riseup.net> | 2024-01-23 18:33:50 +0100 |
commit | 1314f2a8c8845712cd8bf027dcbd94a8233bc560 (patch) | |
tree | b3116f7a0a06bff16b7fee22f687beb83c7508dc | |
parent | 4c5c478f865d042e66cc59f510f9704e7fe22cb0 (diff) | |
download | nixos-config-reborn-1314f2a8c8845712cd8bf027dcbd94a8233bc560.tar.gz nixos-config-reborn-1314f2a8c8845712cd8bf027dcbd94a8233bc560.zip |
vim: switch from nvim-notify to fidget.nvim
along with the LSP progress view
-rw-r--r-- | common/vim.nix | 3 | ||||
-rw-r--r-- | dotfiles/vim/lua/myConfig.lua | 39 |
2 files changed, 7 insertions, 35 deletions
diff --git a/common/vim.nix b/common/vim.nix index 481542a..8d872dc 100644 --- a/common/vim.nix +++ b/common/vim.nix | |||
@@ -63,7 +63,6 @@ inputs: { | |||
63 | undotree | 63 | undotree |
64 | gruvbox-community | 64 | gruvbox-community |
65 | lualine-nvim | 65 | lualine-nvim |
66 | lualine-lsp-progress | ||
67 | (gitsigns-nvim.overrideAttrs (_old: { | 66 | (gitsigns-nvim.overrideAttrs (_old: { |
68 | src = pkgs.fetchFromGitHub { | 67 | src = pkgs.fetchFromGitHub { |
69 | owner = "lewis6991"; | 68 | owner = "lewis6991"; |
@@ -73,7 +72,7 @@ inputs: { | |||
73 | }; | 72 | }; |
74 | })) | 73 | })) |
75 | diffview-nvim | 74 | diffview-nvim |
76 | nvim-notify | 75 | fidget-nvim |
77 | indent-blankline-nvim | 76 | indent-blankline-nvim |
78 | oil-nvim | 77 | oil-nvim |
79 | dressing-nvim | 78 | dressing-nvim |
diff --git a/dotfiles/vim/lua/myConfig.lua b/dotfiles/vim/lua/myConfig.lua index f38b445..67f5d41 100644 --- a/dotfiles/vim/lua/myConfig.lua +++ b/dotfiles/vim/lua/myConfig.lua | |||
@@ -410,15 +410,6 @@ require("lualine").setup { | |||
410 | icons_enabled = false, | 410 | icons_enabled = false, |
411 | section_separators = "", | 411 | section_separators = "", |
412 | }, | 412 | }, |
413 | sections = { | ||
414 | lualine_c = { | ||
415 | "filename", | ||
416 | { | ||
417 | "lsp_progress", | ||
418 | display_components = { "lsp_client_name", { "title", "percentage", "message" } }, | ||
419 | }, | ||
420 | }, | ||
421 | }, | ||
422 | } | 413 | } |
423 | 414 | ||
424 | -- VSnip | 415 | -- VSnip |
@@ -477,31 +468,13 @@ require("diffview").setup { | |||
477 | enhanced_diff_hl = true, | 468 | enhanced_diff_hl = true, |
478 | } | 469 | } |
479 | 470 | ||
480 | -- Notify | 471 | -- Fidget |
481 | |||
482 | vim.cmd [[highlight link NotifyERRORBorder DiagnosticError]] | ||
483 | vim.cmd [[highlight link NotifyERRORIcon DiagnosticError]] | ||
484 | vim.cmd [[highlight link NotifyERRORTitle DiagnosticError]] | ||
485 | |||
486 | vim.cmd [[highlight link NotifyWARNBorder DiagnosticWarn]] | ||
487 | vim.cmd [[highlight link NotifyWARNIcon DiagnosticWarn]] | ||
488 | vim.cmd [[highlight link NotifyWARNTitle DiagnosticWarn]] | ||
489 | |||
490 | vim.cmd [[highlight link NotifyINFOBorder DiagnosticInfo]] | ||
491 | vim.cmd [[highlight link NotifyINFOIcon DiagnosticInfo]] | ||
492 | vim.cmd [[highlight link NotifyINFOTitle DiagnosticInfo]] | ||
493 | 472 | ||
494 | vim.cmd [[highlight link NotifyDEBUGBorder DiagnosticHint]] | 473 | require("fidget").setup({ |
495 | vim.cmd [[highlight link NotifyDEBUGIcon DiagnosticHint]] | 474 | notification = { |
496 | vim.cmd [[highlight link NotifyDEBUGTitle DiagnosticHint]] | 475 | override_vim_notify = true, |
497 | 476 | }, | |
498 | vim.cmd [[highlight link NotifyDEBUGBorder GruvboxPurple]] | 477 | }) |
499 | vim.cmd [[highlight link NotifyDEBUGIcon GruvboxPurple]] | ||
500 | vim.cmd [[highlight link NotifyDEBUGTitle GruvboxPurple]] | ||
501 | |||
502 | require("notify").setup { stages = "static" } | ||
503 | |||
504 | vim.notify = require("notify") | ||
505 | 478 | ||
506 | -- Comment | 479 | -- Comment |
507 | 480 | ||