虽然早就到了,现在才有时间仔细体验
这周好像每天都在下雨,生活似乎过于单调
我一直用的是 neovim 10,就是那个还没发布的版本。因为只有 neovim 10 支持 inlay_hint
。配合 rust-analyzer 非常的好用
最近改了 API 的函数签名,lazynvim 开始报错,我有点反感 lazynvim 的自动更新模式
vim.lsp.inlay_hint.enable(bufnr:number, enable:boolean) is deprecated, use vim.lsp.inlay_hint.enable(enable:boolean, filter:table) instead. :help deprecated
Error detected while processing LspAttach Autocommands for "*":
Error executing lua callback: ...pp/nvim-10/share/nvim/runtime/lua/vim/lsp/inlay_hint.lua:387: see :help vim.lsp.inlay_hint.enable() for updated parameters
stack traceback:
[C]: in function 'error'
...pp/nvim-10/share/nvim/runtime/lua/vim/lsp/inlay_hint.lua:387: in function 'enable'
...l/share/LazyVim/lazy/LazyVim/lua/lazyvim/util/toggle.lua:70: in function 'inlay_hints'
...re/LazyVim/lazy/LazyVim/lua/lazyvim/plugins/lsp/init.lua:134: in function 'on_attach'
...ocal/share/LazyVim/lazy/LazyVim/lua/lazyvim/util/lsp.lua:30: in function <...ocal/share/LazyVim/lazy/LazyVim/lua/lazyvim/util/lsp.lua:27>
[C]: in function 'nvim_exec_autocmds'
...l/.app/nvim-10/share/nvim/runtime/lua/vim/lsp/client.lua:954: in function '_on_attach'
...l/.app/nvim-10/share/nvim/runtime/lua/vim/lsp/client.lua:623: in function ''
vim/_editor.lua: in function <vim/_editor.lua:0>
Press ENTER or type command to continue
vim.lsp.inlay_hint.enable(bufnr:number, enable:boolean) is deprecated, use vim.lsp.inlay_hint.enable(enable:boolean, filter:table) instead. :help deprecated
Feature was removed in Nvim 0.10-dev
Press ENTER or type command to continue
最近在忙着交付项目,没什么改动