Use fixed rustaceanvim version

main
Ensar Sarajčić 2024-12-02 16:37:39 +01:00
parent 329e46f137
commit fed7d15710
2 changed files with 10 additions and 3 deletions

View File

@ -155,7 +155,11 @@ return require("lazy").setup({
-- LSP language specific
"folke/neodev.nvim", -- Built-in Lua integration with LSP
"akinsho/flutter-tools.nvim", -- Additional flutter integrations
{ "mrcjkb/rustaceanvim", ft = "rust" }, -- Additional rust integrations
{
"mrcjkb/rustaceanvim",
version = "^5", -- Recommended
lazy = false, -- This plugin is already lazy
},
{ "mfussenegger/nvim-jdtls", ft = "java" }, -- Additional java integrations
"scalameta/nvim-metals", -- Scala

View File

@ -91,8 +91,11 @@ vim.g.rustaceanvim = {
on_attach = function(client, bufnr)
common_config.on_attach(client, bufnr)
end,
cmd = { "ra-multiplex" },
settings = {
logfile = vim.fn.tempname() .. "-rust-analyzer.log",
cmd = function()
return { "ra-multiplex", "client", "--", "--log-file", vim.g.rustaceanvim.server.logfile }
end,
default_settings = {
["rust-analyzer"] = {
checkOnSave = {
command = "clippy",