overhaul of some dotfiles

This commit is contained in:
Blake Ridgway
2026-04-05 10:42:44 -05:00
parent 05cdb1ca14
commit 8a006faf65
69 changed files with 697 additions and 6191 deletions

View File

@@ -1,6 +1,48 @@
-- NvChad sets default capabilities (nvim-cmp) and on_attach via vim.lsp.config("*", ...)
require("nvchad.configs.lspconfig").defaults()
local servers = { "html", "cssls" }
vim.lsp.enable(servers)
-- Go
vim.lsp.config("gopls", {
settings = {
gopls = {
gofumpt = true,
usePlaceholders = true,
staticcheck = true,
analyses = {
unusedparams = true,
shadow = true,
nilness = true,
},
hints = {
assignVariableTypes = true,
compositeLiteralFields = true,
functionTypeParameters = true,
parameterNames = true,
rangeVariableTypes = true,
},
},
},
})
-- read :h vim.lsp.config for changing options of lsp servers
-- YAML
vim.lsp.config("yamlls", {
settings = {
yaml = {
validate = true,
schemaStore = {
enable = true,
url = "https://www.schemastore.org/api/json/catalog.json",
},
},
},
})
-- C# / OmniSharp
vim.lsp.config("omnisharp", {
enable_roslyn_analyzers = true,
organize_imports_on_format = true,
enable_import_completion = true,
})
-- Enable all servers (Mason puts their binaries on PATH automatically)
vim.lsp.enable({ "gopls", "yamlls", "bashls", "omnisharp" })