This commit is contained in:
elkowar 2023-01-16 00:11:44 +01:00
parent 32e98738ca
commit 04986ceca7
No known key found for this signature in database
GPG key ID: E321AD71B1D1F27F
2 changed files with 7 additions and 5 deletions

View file

@ -120,8 +120,7 @@
:sindrets/diffview.nvim {:cmd ["DiffviewOpen" "DiffviewToggleFiles"]
:config #(require "dots.plugins.diffview")}
:lewis6991/gitsigns.nvim {:lazy true
:dependencies [:vim-gruvbox8]
:lewis6991/gitsigns.nvim {:dependencies [:vim-gruvbox8]
:config #(require "dots.plugins.gitsigns")}
:ruanyl/vim-gh-line {}

View file

@ -107,7 +107,6 @@
(set client.resolved_capabilities.document_formatting false)
(on_attach client bufnr))})
(let [rust-tools (require "rust-tools")
rust-tools-dap (require "rust-tools.dap")
extension-path "/home/leon/.vscode/extensions/vadimcn.vscode-lldb-1.6.8/"
@ -118,11 +117,15 @@
:dap {:adapter (rust-tools-dap.get_codelldb_adapter codelldb-path liblldb-path)}
:server {:on_attach on_attach
:capabilities default-capabilities
:settings {:rust-analyzer {:cargo {:loadOutDirsFromCheck true}
:settings {:rust-analyzer {:cargo {:loadOutDirsFromCheck true
:features (or features "all")
:noDefaultFeatures (~= nil features)}
:procMacro {:enable true}
:diagnostics {:enable false ;; native rust analyzer diagnostics
:experimental {:enable false}}
:checkOnSave {:overrideCommand ["cargo" "clippy" "--workspace" "--message-format=json" "--all-targets" "--all-features"]}}}}}))
:checkOnSave {:overrideCommand ["cargo" "clippy" "--workspace" "--message-format=json" "--all-targets"]}}}}}))
; "--all-features"
;:cmd ["/home/leon/coding/prs/rust-analyzer/target/release/rust-analyzer"]}}))