Skip to content

Commit 5104b51

Browse files
committed
docs: add notes for AstroLSP v4
1 parent 204d775 commit 5104b51

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

lua/astrolsp/init.lua

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,20 @@
99
---@class astrolsp
1010
local M = {}
1111

12+
-- TODO: Roadmap to AstroLSP v4
13+
-- ============================
14+
-- - Move `on_attach` to an autocommand on `LspAttach` event
15+
-- - Leave `on_attach` option to allow users to override the default `on_attach` easily
16+
-- - Remove `mason_lspconfig` option as this is improving with mason-lspconfig v2
17+
-- - Rely only on `vim.lsp.config`
18+
-- - Remove `native_lsp_config` option
19+
-- - Make `capabilities` and `flags` AstroLSP opt call `vim.lsp.config("*", { capabilities = {}, flags = {} })`
20+
-- - Move logic for enabling servers into the `setup` function
21+
-- - Maintain `handlers` for setting up, allow users to decide not to call `vim.lsp.enable(server_name)`
22+
-- - Remove `config` from AstroLSP opts, users should use `lsp/`
23+
-- - Remove `lsp_opts(server_name)`, users should use `vim.lsp.config[server_name]`
24+
-- - Remove `lsp_config(server_name)`, users should use `vim.lsp.config[server_name]`
25+
1226
local utils = require "astrolsp.utils"
1327

1428
local tbl_contains = vim.tbl_contains

0 commit comments

Comments
 (0)