mirror of
https://github.com/pratiktri/dotfiles.git
synced 2026-02-04 16:41:43 +05:30
fix(neovim): taplo (toml LSP) configured & Rust LSP improvements
- `taplo` LSP config added so Cargo.toml files gets LSP benefits - Rust LSP: buildScripts, ignored directories - Crates: completion & LSP plug
This commit is contained in:
@@ -78,7 +78,12 @@ return {
|
||||
-- LSP configuration
|
||||
default_settings = {
|
||||
["rust-analyzer"] = {
|
||||
cargo = { allFeatures = true },
|
||||
cargo = {
|
||||
allFeatures = true,
|
||||
loadOutDirsFromCheck = true,
|
||||
buildScripts = { enabled = true },
|
||||
},
|
||||
checkOnSave = true,
|
||||
diagnostics = {
|
||||
enable = true,
|
||||
enableExperimental = true,
|
||||
@@ -114,6 +119,9 @@ return {
|
||||
["async-recursion"] = { "async_recursion" },
|
||||
},
|
||||
},
|
||||
files = {
|
||||
excludeDirs = { ".direnv", ".git", ".github", ".gitlab", "bin", "node_modules", "target", "venv", ".venv" },
|
||||
},
|
||||
},
|
||||
},
|
||||
dap = {
|
||||
@@ -129,6 +137,19 @@ return {
|
||||
{
|
||||
"saecki/crates.nvim",
|
||||
tag = "stable",
|
||||
opts = {
|
||||
completion = {
|
||||
crates = {
|
||||
enabled = true,
|
||||
},
|
||||
},
|
||||
lsp = {
|
||||
enabled = true,
|
||||
actions = true,
|
||||
completion = true,
|
||||
hover = true,
|
||||
},
|
||||
},
|
||||
config = function()
|
||||
require("crates").setup()
|
||||
end,
|
||||
|
||||
Reference in New Issue
Block a user