Browse Source

nixpkgs/neovim: replace fidget with mini.notify

Thomas Dy 10 tháng trước cách đây
mục cha
commit
f63d50d661

+ 0 - 3
.config/nixpkgs/neovim/lsp.lua

@@ -141,6 +141,3 @@ nvim_lsp.elvish.setup({
   capabilities = capabilities,
   on_attach = on_attach,
 })
-
--- show LSP progress bar
-require('fidget').setup()

+ 3 - 0
.config/nixpkgs/neovim/mappings.lua

@@ -45,6 +45,9 @@ vim.keymap.set('n', ']w', '<C-w>w', opts)
 -- cursor display
 vim.keymap.set('n', '<Leader>c', '<cmd>set cursorline! cursorcolumn!<CR>', opts)
 
+-- notification history
+vim.keymap.set('n', '<Leader>n', require('mini.notify').show_history, opts)
+
 -- git
 -- open status in current split without special flag (so navigating away closes it)
 -- https://github.com/tpope/vim-fugitive/issues/1296

+ 4 - 0
.config/nixpkgs/neovim/plugins.lua

@@ -189,6 +189,10 @@ require('mini.jump').setup({
   },
 })
 
+-- notifications
+require('mini.notify').setup()
+vim.notify = require('mini.notify').make_notify()
+
 -- rest client
 require('rest-nvim').setup({})
 

+ 2 - 7
.config/nixpkgs/neovim/plugins/sources.json

@@ -36,8 +36,8 @@
     "sha256": "1f6vqqafk78njpl47xgsf8p199mmvw4h4b9axab9rl86fdlibikz"
   },
   "echasnovski/mini.nvim": {
-    "rev": "ea1af8c7d5e72148cae8a04e9887322a53fe66cf",
-    "sha256": "0m0x9fq56napz4kkbhh7bxm9aw0hjk2m8fd126pb1bjhsl6zr99g"
+    "rev": "1cd8d7e8318071eddc536815f5cafe50b012ac29",
+    "sha256": "03gpcx09a53w73bf4kyhk5xa764bxcaaymwrnw1jr0yqinyz7j62"
   },
   "lewis6991/gitsigns.nvim": {
     "rev": "d195f0c35ced5174d3ecce1c4c8ebb3b5bc23fa9",
@@ -55,11 +55,6 @@
     "rev": "4de85ef699d7e6010528dcfbddc2ed4c2c421467",
     "sha256": "0rx29i3hmzh2knxx098fvfc0iafx3j08bs1zbv4dxadq56dnhaxm"
   },
-  "j-hui/fidget.nvim": {
-    "branch": "refs/tags/legacy",
-    "rev": "0ba1e16d07627532b6cae915cc992ecac249fb97",
-    "sha256": "01rrjxlg4xjfs8la0cfcnf5z36s5fdxqzfs4mc0zdz1bn5z60qmf"
-  },
   "sainnhe/sonokai": {
     "rev": "bdce098fc9e7202d3c555e2dc98c755ca1c23835",
     "sha256": "09brv393ccqgvg0xwg55lh6ss5c16qs1as2hrrqh8952c1kqzxig"