mirror of
https://github.com/elkowar/dots-of-war.git
synced 2024-12-26 06:02:23 +00:00
clippy in rust-analyzer
This commit is contained in:
parent
18dc1563b2
commit
b3aaf691a0
2 changed files with 16 additions and 1 deletions
|
@ -121,7 +121,8 @@
|
||||||
:settings {:rust-analyzer {:cargo {:loadOutDirsFromCheck true}
|
:settings {:rust-analyzer {:cargo {:loadOutDirsFromCheck true}
|
||||||
:procMacro {:enable true}
|
:procMacro {:enable true}
|
||||||
:diagnostics {:enable false ;; native rust analyzer diagnostics
|
:diagnostics {:enable false ;; native rust analyzer diagnostics
|
||||||
:experimental {:enable false}}}}}}))
|
:experimental {:enable false}}
|
||||||
|
:checkOnSave {:overrideCommand ["cargo" "clippy" "--workspace" "--message-format=json" "--all-targets" "--all-features"]}}}}}))
|
||||||
|
|
||||||
;:cmd ["/home/leon/coding/prs/rust-analyzer/target/release/rust-analyzer"]}}))
|
;:cmd ["/home/leon/coding/prs/rust-analyzer/target/release/rust-analyzer"]}}))
|
||||||
|
|
||||||
|
|
|
@ -7,6 +7,20 @@ local vim_config_root = vim.fn.expand("<sfile>:p:h")
|
||||||
|
|
||||||
local pack_path = vim.fn.stdpath("data") .. "/site/pack"
|
local pack_path = vim.fn.stdpath("data") .. "/site/pack"
|
||||||
|
|
||||||
|
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
|
||||||
|
if not vim.loop.fs_stat(lazypath) then
|
||||||
|
vim.fn.system({
|
||||||
|
"git",
|
||||||
|
"clone",
|
||||||
|
"--filter=blob:none",
|
||||||
|
"https://github.com/folke/lazy.nvim.git",
|
||||||
|
"--branch=stable", -- latest stable release
|
||||||
|
lazypath,
|
||||||
|
})
|
||||||
|
end
|
||||||
|
vim.opt.rtp:prepend(lazypath)
|
||||||
|
|
||||||
|
|
||||||
function ensure(user, repo, branch, commit)
|
function ensure(user, repo, branch, commit)
|
||||||
-- Ensures a given github.com/USER/REPO is cloned in the pack/packer/start directory.
|
-- Ensures a given github.com/USER/REPO is cloned in the pack/packer/start directory.
|
||||||
local install_path = pack_path .. "/packer/start/" .. repo
|
local install_path = pack_path .. "/packer/start/" .. repo
|
||||||
|
|
Loading…
Reference in a new issue