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

Issue #30 Add utility to get client capabilities for LSP server config #32

Merged
merged 1 commit into from
Jun 15, 2024

Conversation

mikehaertl
Copy link
Contributor

@mikehaertl mikehaertl commented Jun 15, 2024

#30

@@ -108,4 +117,19 @@ M.setup = function(opts)
end
end

--- The extra client capabilities provided by this plugin. To be merged with
--- vim.lsp.protocol.make_client_capabilities() and sent to the LSP server.
M.default_capabilities = function()
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@antosha417 I don't do much lua development - so improvements welcome. If you don't like it we can also remove it again. But that would make setup slightly more verbose.

Copy link
Owner

@antosha417 antosha417 left a comment

Choose a reason for hiding this comment

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

Looking good! Thank you for your effort!

Added small comment about disabling unwanted capabilities

lua/lsp-file-operations.lua Show resolved Hide resolved
@antosha417 antosha417 merged commit 92a673d into antosha417:master Jun 15, 2024
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