Skip to content

Commit af7dced

Browse files
committed
refactor!: move defaults to configuration through setup
1 parent 240f8f9 commit af7dced

File tree

5 files changed

+47
-261
lines changed

5 files changed

+47
-261
lines changed

lua/astrolsp/config.lua

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
return {
2+
features = {
3+
autoformat_enabled = true,
4+
codelens = true,
5+
diagnostics_mode = 3,
6+
inlay_hints = false,
7+
lsp_handlers = true,
8+
semantic_tokens = true,
9+
},
10+
capabilities = {},
11+
config = {},
12+
diagnostics = {},
13+
flags = {},
14+
formatting = { format_on_save = { enabled = true }, disabled = {} },
15+
mappings = {},
16+
servers = {},
17+
setup_handlers = { function(server, opts) require("lspconfig")[server].setup(opts) end },
18+
on_attach = nil,
19+
}

lua/astrolsp/config/init.lua

Lines changed: 0 additions & 96 deletions
This file was deleted.

lua/astrolsp/config/mappings.lua

Lines changed: 0 additions & 122 deletions
This file was deleted.

0 commit comments

Comments
 (0)