From 1314f2a8c8845712cd8bf027dcbd94a8233bc560 Mon Sep 17 00:00:00 2001 From: Minijackson Date: Tue, 23 Jan 2024 18:33:50 +0100 Subject: vim: switch from nvim-notify to fidget.nvim along with the LSP progress view --- common/vim.nix | 3 +-- 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: { undotree gruvbox-community lualine-nvim - lualine-lsp-progress (gitsigns-nvim.overrideAttrs (_old: { src = pkgs.fetchFromGitHub { owner = "lewis6991"; @@ -73,7 +72,7 @@ inputs: { }; })) diffview-nvim - nvim-notify + fidget-nvim indent-blankline-nvim oil-nvim 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 { icons_enabled = false, section_separators = "", }, - sections = { - lualine_c = { - "filename", - { - "lsp_progress", - display_components = { "lsp_client_name", { "title", "percentage", "message" } }, - }, - }, - }, } -- VSnip @@ -477,31 +468,13 @@ require("diffview").setup { enhanced_diff_hl = true, } --- Notify - -vim.cmd [[highlight link NotifyERRORBorder DiagnosticError]] -vim.cmd [[highlight link NotifyERRORIcon DiagnosticError]] -vim.cmd [[highlight link NotifyERRORTitle DiagnosticError]] - -vim.cmd [[highlight link NotifyWARNBorder DiagnosticWarn]] -vim.cmd [[highlight link NotifyWARNIcon DiagnosticWarn]] -vim.cmd [[highlight link NotifyWARNTitle DiagnosticWarn]] - -vim.cmd [[highlight link NotifyINFOBorder DiagnosticInfo]] -vim.cmd [[highlight link NotifyINFOIcon DiagnosticInfo]] -vim.cmd [[highlight link NotifyINFOTitle DiagnosticInfo]] +-- Fidget -vim.cmd [[highlight link NotifyDEBUGBorder DiagnosticHint]] -vim.cmd [[highlight link NotifyDEBUGIcon DiagnosticHint]] -vim.cmd [[highlight link NotifyDEBUGTitle DiagnosticHint]] - -vim.cmd [[highlight link NotifyDEBUGBorder GruvboxPurple]] -vim.cmd [[highlight link NotifyDEBUGIcon GruvboxPurple]] -vim.cmd [[highlight link NotifyDEBUGTitle GruvboxPurple]] - -require("notify").setup { stages = "static" } - -vim.notify = require("notify") +require("fidget").setup({ + notification = { + override_vim_notify = true, + }, +}) -- Comment -- cgit v1.2.3