nvim: update config
This commit is contained in:
parent
99d6f95d13
commit
c712b6dada
9 changed files with 25 additions and 24 deletions
|
@ -363,11 +363,11 @@
|
|||
},
|
||||
"nixos-unstable": {
|
||||
"locked": {
|
||||
"lastModified": 1699686971,
|
||||
"narHash": "sha256-fttf55Uo88Ei57sxTuDOwKXg8izdR365lFjI13+XfwE=",
|
||||
"lastModified": 1699956859,
|
||||
"narHash": "sha256-dmlFTx0svBi8Z26Cbqpg8ZF/7K5IwoFvFOfAZovO3Hw=",
|
||||
"owner": "nixos",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "d638da8b6a17041483d90ba9af6c3b5e30b4fbcc",
|
||||
"rev": "df4d6022db36b396fca38931afb41a626ef88e8a",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
|
|
@ -78,7 +78,9 @@
|
|||
(keymap.set :n :<leader>tw
|
||||
#(telescope-builtin.lsp_dynamic_workspace_symbols telescope-dropdown)
|
||||
{:buffer bufnr :desc "LSP Workspace Symbols"})
|
||||
(keymap.set :n :<leader>th #(vim.lsp.inlay_hint bufnr nil)
|
||||
(keymap.set :n :<leader>th
|
||||
#(vim.lsp.inlay_hint.enable bufnr
|
||||
(not (vim.lsp.inlay_hint.is_enabled bufnr)))
|
||||
{:buffer bufnr :desc "Toggle Inlay Hints"})
|
||||
(keymap.set :n :<leader>lca
|
||||
#(telescope-builtin.lsp_code_actions telescope-dropdown)
|
||||
|
|
|
@ -56,8 +56,7 @@
|
|||
:nvim_lsp "[LSP]"
|
||||
:nvim_lsp_document_symbol "[Symbol]"
|
||||
:nvim_lua "[Lua]"
|
||||
:path "[Path]"}})}
|
||||
:experimental {:ghost_text true}})
|
||||
:path "[Path]"}})}})
|
||||
(cmp.setup.cmdline "/"
|
||||
{:sources (cmp.config.sources [{:name :nvim_lsp_document_symbol}]
|
||||
[{:name :buffer}])
|
||||
|
|
3
home/config/nvim/plugins/fidget.fnl
Normal file
3
home/config/nvim/plugins/fidget.fnl
Normal file
|
@ -0,0 +1,3 @@
|
|||
(let [fidget (require :fidget)]
|
||||
(fidget.setup {})
|
||||
(set vim.notify fidget.notify))
|
|
@ -6,10 +6,10 @@
|
|||
augroup (vim.api.nvim_create_augroup :NifocLsp {:clear true})
|
||||
aucmd vim.api.nvim_create_autocmd]
|
||||
(fn setup-inlay-hint-toggle [bufnr]
|
||||
(aucmd :InsertEnter {:callback #(vim.lsp.inlay_hint bufnr false)
|
||||
(aucmd :InsertEnter {:callback #(vim.lsp.inlay_hint.enable bufnr false)
|
||||
:buffer bufnr
|
||||
:group augroup})
|
||||
(aucmd :InsertLeave {:callback #(vim.lsp.inlay_hint bufnr true)
|
||||
(aucmd :InsertLeave {:callback #(vim.lsp.inlay_hint.enable bufnr true)
|
||||
:buffer bufnr
|
||||
:group augroup}))
|
||||
|
||||
|
@ -20,7 +20,7 @@
|
|||
(when (client.supports_method :textDocument/documentSymbol)
|
||||
(navic.attach client bufnr))
|
||||
(when (client.supports_method :textDocument/inlayHint)
|
||||
(vim.lsp.inlay_hint bufnr true)
|
||||
(vim.lsp.inlay_hint.enable bufnr true)
|
||||
(setup-inlay-hint-toggle bufnr))
|
||||
(diagnostic.maybe-enable-lsp client bufnr)))
|
||||
:group augroup
|
||||
|
|
|
@ -1,3 +0,0 @@
|
|||
(let [notify (require :notify)]
|
||||
(notify.setup {:stages :fade})
|
||||
(set vim.notify notify))
|
|
@ -308,8 +308,8 @@ in
|
|||
}
|
||||
|
||||
{
|
||||
plugin = nvim-notify;
|
||||
config = builtins.readFile ../../config/nvim/plugins/notify.fnl;
|
||||
plugin = fidget-nvim;
|
||||
config = builtins.readFile ../../config/nvim/plugins/fidget.fnl;
|
||||
type = "fennel";
|
||||
}
|
||||
];
|
||||
|
|
|
@ -223,8 +223,8 @@ in
|
|||
src = fetchFromGitHub {
|
||||
owner = "neovim";
|
||||
repo = "nvim-lspconfig";
|
||||
rev = "fa04d48113d7db6223c52b98c049995ecce3456e";
|
||||
sha256 = "0sapa53g91hy9w2rnzvd4560is9vp1qv6fk3w4w9la5yw4snmbda";
|
||||
rev = "0a0682d4646a6869b85a4e4d0e30da5ef8b11f66";
|
||||
sha256 = "0i64ly4lgpvdywyczv39vnmljr6y445apvidz4db9cbrzzf39wd0";
|
||||
fetchSubmodules = false;
|
||||
};
|
||||
};
|
||||
|
@ -492,14 +492,14 @@ in
|
|||
fetchSubmodules = false;
|
||||
};
|
||||
};
|
||||
nvim-notify = buildVimPlugin {
|
||||
pname = "nvim-notify";
|
||||
version = "2023-09-28";
|
||||
fidget-nvim = buildVimPlugin {
|
||||
pname = "fidget.nvim";
|
||||
version = "2023-11-14";
|
||||
src = fetchFromGitHub {
|
||||
owner = "rcarriga";
|
||||
repo = "nvim-notify";
|
||||
rev = "e4a2022f4fec2d5ebc79afa612f96d8b11c627b3";
|
||||
sha256 = "1a7s4y8xd1plcidnzs29rhqw7mfbj1q01bqffqjmimii9v6azmfn";
|
||||
owner = "j-hui";
|
||||
repo = "fidget.nvim";
|
||||
rev = "6c8274e13483de5782a5c6020a4fc837b81a7b49";
|
||||
sha256 = "0nc8x1gh4z023pr04nw9rdpm5jncvq89sm6w9mya358mpd34sa6l";
|
||||
fetchSubmodules = false;
|
||||
};
|
||||
};
|
||||
|
|
|
@ -58,4 +58,4 @@
|
|||
- src: lukas-reineke/virt-column.nvim
|
||||
- src: axieax/urlview.nvim
|
||||
- src: lewis6991/gitsigns.nvim
|
||||
- src: rcarriga/nvim-notify
|
||||
- src: j-hui/fidget.nvim
|
||||
|
|
Loading…
Reference in a new issue