require("nvchad.configs.lspconfig").defaults()

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" },
}

-- read :h vim.lsp.config for changing options of lsp servers
