Improved rust neovim setup
- Fixed crash using nvim-cmp - Added rust analyzer to neovim dependencies
This commit is contained in:
parent
f7e66f6428
commit
77da27cac0
|
@ -53,7 +53,11 @@ function M.config()
|
||||||
})(entry, vim_item)
|
})(entry, vim_item)
|
||||||
local strings = vim.split(kind.kind, "%s", { trimempty = true })
|
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 = ""
|
kind.menu = ""
|
||||||
|
|
||||||
return kind
|
return kind
|
||||||
|
|
|
@ -13,6 +13,7 @@ let
|
||||||
nodePackages_latest.vscode-langservers-extracted # Web stuff
|
nodePackages_latest.vscode-langservers-extracted # Web stuff
|
||||||
python310Packages.python-lsp-server # Python
|
python310Packages.python-lsp-server # Python
|
||||||
pyright # Python
|
pyright # Python
|
||||||
|
rust-analyzer # rust
|
||||||
|
|
||||||
# Formatters
|
# Formatters
|
||||||
luaformatter # Lua
|
luaformatter # Lua
|
||||||
|
@ -33,6 +34,7 @@ let
|
||||||
nodePackages.typescript # typescript
|
nodePackages.typescript # typescript
|
||||||
lua # For repls and whatnot
|
lua # For repls and whatnot
|
||||||
wakatime # time tracking
|
wakatime # time tracking
|
||||||
|
rustfmt
|
||||||
|
|
||||||
# Others
|
# Others
|
||||||
fd # file finder
|
fd # file finder
|
||||||
|
|
Loading…
Reference in a new issue