Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

languages: inherit lspconfig options from language options #643

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

NotAShelf
Copy link
Owner

No description provided.

github-actions bot pushed a commit that referenced this pull request Feb 16, 2025
Copy link

github-actions bot commented Feb 16, 2025

🚀 Live preview deployed from e42bcbe

View it here:

Debug Information

Triggered by: NotAShelf

HEAD at: lsp-configuration-opts

Reruns: 278

@NotAShelf NotAShelf changed the title lib/languages: add lspOptions submodule type for freeform LSP config languages: inherit lspconfig options from language options Feb 16, 2025
@NotAShelf NotAShelf force-pushed the lsp-configuration-opts branch from 0a00dd5 to d827ac8 Compare February 16, 2025 09:59
description = "Filetypes to auto-attach LSP in";
};

cmd = mkOption {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do you think it's necessary to split this into cmd, args? someone might want to override the cmd but keep the args

package = pkgs.asm-lsp;
options = {
capabilities = mkLuaInline "capabilities";
on_attach = mkLuaInline "attach_keymaps";
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why not default_on_attach?

options = {
capabilities = mkOption {
type = luaInline;
default = mkLuaInline "default_capabilities";
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just "capabilities" I'm pretty sure

github-actions bot pushed a commit that referenced this pull request Feb 20, 2025
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.

2 participants