Open StHagel opened 2 years ago
If you do :messages
you can see the full error (when it would disappear quickly). Would be helpful, in this case, to identify the problem.
I'm not certain if this is the exact error that OP is getting, but here's the full version of what I get:
Error detected while processing BufReadPost Autocommands for "*":
Error executing lua callback: ...brew/Cellar/neovim/0.9.1/share/nvim/runtime/filetype.lua:21: Error executing lua: ...brew/Cellar/neovim/0.9.1/share/nvim/runtime/filetype.lua:22: BufReadPost Autocommands for "*"..FileType Autocommands for "*"..function <SNR>1_LoadFTPlugin[19]..script /Users/qyriad/.local/share/nvim/lazy/rust-tools.nvim/ftplugin/rust.vim, line 1: Vim(command):E174: Command already exists: add ! to replace it: RustStartStandaloneServerForBuffer :lua require('rust-tools.standalone').start_standalone_client()
stack traceback:
[C]: in function 'nvim_cmd'
...brew/Cellar/neovim/0.9.1/share/nvim/runtime/filetype.lua:22: in function <...brew/Cellar/neovim/0.9.1/share/nvim/runtime/filetype.lua:21>
[C]: in function 'nvim_buf_call'
...brew/Cellar/neovim/0.9.1/share/nvim/runtime/filetype.lua:21: in function <...brew/Cellar/neovim/0.9.1/share/nvim/runtime/filetype.lua:10>
stack traceback:
[C]: in function 'nvim_buf_call'
...brew/Cellar/neovim/0.9.1/share/nvim/runtime/filetype.lua:21: in function <...brew/Cellar/neovim/0.9.1/share/nvim/runtime/filetype.lua:10>
Which looks to me like command RustStartStandaloneServerForBuffer
just needs to be command!
to overwrite, or needs to be buffer scoped with command -buffer
.
I installed the plugin via
packer.nvim
, but when I open a rust file afterwards, I get the following error:Error detected while processing BufReadPost Autocommands for "*":
It just pops up quickly before dissappearing again and the file opens, but the plugin does not work.
Here is my
~/.config/nvim/init.vim
:Here is my
~/.config/nvim/lua/init.lua
:And finally my
~/.config/nvim/lua/plugins.lua
:I am using nvim version
v0.8.0-dev-1207-g183984880
, which I built from source today. Any ideas on how to fix this?