Thanks to visit codestin.com
Credit goes to github.com

Skip to content

AstroLSP v4#35

Draft
mehalter wants to merge 11 commits intomainfrom
v4
Draft

AstroLSP v4#35
mehalter wants to merge 11 commits intomainfrom
v4

Conversation

@mehalter
Copy link
Member

@mehalter mehalter commented Apr 22, 2025

📑 Description

This is pretty far out, but gives a placeholder for future development and shows the progress getting made in the background. This moves entirely to using vim.lsp.config and vim.lsp.enable for powering LSP features in Neovim.

Required Before Merging

ℹ Additional Information

  • AstroNvim branch updated to use this version
  • config table has been refactored to be a general API for vim.lsp.config which includes moving default capabilities and flags to config = { ["*"] = { capabilities = {}, flags = {} } }, users can still do their configuration in ~/.config/nvim/lsp/<server_name>.lua
  • The default on_attach behavior is moved to an autocommand on LspAttach event
    • The configuration of the default on_attach function extension simply adds onto this autocommand and allows easily modifying it/reverting things that are not desired.
    • mappings/autocommands/commands options are still left and are simply part of the default on_attach autocommand
  • Default configuration of capabilities and flags is simply calling vim.lsp.config("*", { capabilities = M.config.capabilities, flags = M.config.flags })
  • require("astrolsp").lsp_opts(server_name) has been removed. The configuration can simply be retrieved with vim.lsp.config[server_name]
  • Remove hack for allowing users to extend mason-lspconfig at runtime. This is not necessary as Mason packages will manage their own mappings to nvim-lspconfig server names

@mehalter mehalter force-pushed the v4 branch 3 times, most recently from 4b1ef25 to f5624e3 Compare April 22, 2025 20:19
@mehalter mehalter force-pushed the v4 branch 2 times, most recently from fe6eef9 to ded7d77 Compare May 13, 2025 18:51
@mehalter mehalter force-pushed the v4 branch 4 times, most recently from f47f877 to e3781e6 Compare June 6, 2025 12:08
@mehalter mehalter force-pushed the v4 branch 2 times, most recently from c1c95d5 to 8f03a7f Compare June 6, 2025 12:19
@mehalter mehalter mentioned this pull request Jun 6, 2025
3 tasks
@mehalter mehalter changed the title feat: move entirely to built in vim.lsp.config AstroLSP v4 Feb 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant