Files
nvim-config/lua/languages/defaults.lua
T
Aaron Gorodetzky 30df5e2fc0 Add per-language modules
Each module defines its LSP servers, treesitter parsers, mason packages,
optional plugins, and per-filetype cmp source overrides.

Modules: rust (with snippet-free cmp config), csharp, c (clangd), nix
(nil_ls), python, web (ts_ls + html + tailwindcss), defaults (lua_ls +
bashls + common parsers).

Not yet wired into the plugin system ??? the orchestrator does that next.
2026-09-14 10:10:02 -04:00

51 lines
1.4 KiB
Lua

-- Language module: Defaults (lightweight servers useful on all machines)
local shared = require('languages._shared')
return {
servers = {
lua_ls = {
capabilities = shared.make_capabilities(false),
settings = {
Lua = {
format = {
defaultConfig = {
indent_style = "space",
indent_size = "2",
max_line_length = "120",
trailing_table_separator = "always",
table_separator_style = "comma",
align_array_table = "false",
align_continuous_rect_table_field = "false",
align_call_args = "false",
align_function_params = "false",
space_around_table_field_list = "false",
},
},
diagnostics = {
globals = {'vim',},
disable = {'missing-fields',},
},
runtime = {
version = "LuaJIT",
},
workspace = {
library = vim.api.nvim_get_runtime_file("", true),
},
},
},
},
bashls = {
capabilities = shared.make_capabilities(false),
filetypes = {'bash', 'sh', 'zsh',},
},
},
parsers = { "lua", "bash", "vim", "vimdoc", "markdown" },
mason_packages = { "lua-language-server", "bash-language-server" },
plugins = {},
cmp_filetypes = {},
}