diff options
author | Baitinq <30861839+Baitinq@users.noreply.github.com> | 2024-06-03 16:27:10 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-03 16:27:10 +0200 |
commit | b6aeda2149e1db866706833ebf3f1c2186999295 (patch) | |
tree | 41235f62a56912ee6b6f78e5fceafd59938d2f1f /dotfiles | |
parent | Update (diff) | |
download | nixos-config-b6aeda2149e1db866706833ebf3f1c2186999295.tar.gz nixos-config-b6aeda2149e1db866706833ebf3f1c2186999295.tar.bz2 nixos-config-b6aeda2149e1db866706833ebf3f1c2186999295.zip |
dotfiles: nvim: Fix codelens
Diffstat (limited to 'dotfiles')
-rw-r--r-- | dotfiles/nvim/init.lua | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/dotfiles/nvim/init.lua b/dotfiles/nvim/init.lua index 150c0a0..1eaeef9 100644 --- a/dotfiles/nvim/init.lua +++ b/dotfiles/nvim/init.lua @@ -576,11 +576,13 @@ require('lazy').setup({ }) end if client and client.server_capabilities.codeLensProvider then - vim.api.nvim_create_autocmd({ 'BufEnter', 'CursorHold', 'InsertLeave' }, { - buffer = event.buf, - callback = vim.lsp.codelens.refresh, - }) - end + vim.api.nvim_create_autocmd({ "BufEnter", "CursorHold", "InsertLeave" }, { + buffer = event.buf, + callback = function() + return vim.lsp.codelens.refresh({ bufnr = event.buf }) + end, + }) + end end, }) |