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