Skip to content

Commit

Permalink
refactor!: move defaults to configuration through setup
Browse files Browse the repository at this point in the history
  • Loading branch information
mehalter committed Jul 21, 2023
1 parent 240f8f9 commit af7dced
Show file tree
Hide file tree
Showing 5 changed files with 47 additions and 261 deletions.
19 changes: 19 additions & 0 deletions lua/astrolsp/config.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
return {
features = {
autoformat_enabled = true,
codelens = true,
diagnostics_mode = 3,
inlay_hints = false,
lsp_handlers = true,
semantic_tokens = true,
},
capabilities = {},
config = {},
diagnostics = {},
flags = {},
formatting = { format_on_save = { enabled = true }, disabled = {} },
mappings = {},
servers = {},
setup_handlers = { function(server, opts) require("lspconfig")[server].setup(opts) end },
on_attach = nil,
}
96 changes: 0 additions & 96 deletions lua/astrolsp/config/init.lua

This file was deleted.

122 changes: 0 additions & 122 deletions lua/astrolsp/config/mappings.lua

This file was deleted.

Loading

0 comments on commit af7dced

Please sign in to comment.