cargo target

This commit is contained in:
EvilMuffinHa 2022-09-06 01:02:14 -04:00
parent 4aa98908b6
commit c1aba36a42

View File

@ -41,6 +41,9 @@ local lsp_confs = {
}, },
}, },
rust_analyzer = { rust_analyzer = {
cmd_env = {
CARGO_TARGET_DIR = "/tmp/rust-analyzer"
},
settings = { settings = {
["rust-analyzer"] = { ["rust-analyzer"] = {
checkOnSave = { checkOnSave = {
@ -89,6 +92,7 @@ local lsp_special_setup = {
local lspconfig = require('lspconfig') local lspconfig = require('lspconfig')
for server, conf in pairs(lsp_confs) do for server, conf in pairs(lsp_confs) do
local source_on_attach = conf.on_attach local source_on_attach = conf.on_attach
if source_on_attach == nil then if source_on_attach == nil then