change name and email in git config, update stylix, change nvim suggestions bindings
This commit is contained in:
@@ -4,31 +4,11 @@ local servers = { "html", "cssls", "rust_analyzer" }
|
||||
vim.lsp.enable(servers)
|
||||
|
||||
-- Configure rust-analyzer with enhanced settings
|
||||
-- Project-specific settings (features, target, etc.) go in rust-analyzer.toml
|
||||
vim.lsp.config.rust_analyzer = {
|
||||
cmd = { "rust-analyzer" },
|
||||
filetypes = { "rust" },
|
||||
root_markers = { "Cargo.toml", "rust-project.json" },
|
||||
settings = {
|
||||
["rust-analyzer"] = {
|
||||
cargo = {
|
||||
allFeatures = true,
|
||||
loadOutDirsFromCheck = true,
|
||||
buildScripts = {
|
||||
enable = true,
|
||||
},
|
||||
},
|
||||
checkOnSave = true,
|
||||
check = {
|
||||
command = "clippy",
|
||||
},
|
||||
procMacro = {
|
||||
enable = true,
|
||||
},
|
||||
diagnostics = {
|
||||
enable = true,
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
-- read :h vim.lsp.config for changing options of lsp servers
|
||||
-- read :h vim.lsp.config for changing options of lsp servers
|
||||
|
||||
Reference in New Issue
Block a user