Improved rust neovim setup
- Fixed crash using nvim-cmp - Added rust analyzer to neovim dependencies
This commit is contained in:
parent
f7e66f6428
commit
77da27cac0
2 changed files with 7 additions and 1 deletions
dotfiles/neovim/lua/my/plugins
|
@ -53,7 +53,11 @@ function M.config()
|
|||
})(entry, vim_item)
|
||||
local strings = vim.split(kind.kind, "%s", { trimempty = true })
|
||||
|
||||
kind.kind = " " .. strings[1] .. " "
|
||||
-- Rust analyzer sometimes has this be nil when working with lifetime arguments.
|
||||
if strings[1] ~= nil then
|
||||
kind.kind = " " .. strings[1] .. " "
|
||||
end
|
||||
|
||||
kind.menu = ""
|
||||
|
||||
return kind
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue