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

feat: cue language server #3529

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

feat: cue language server #3529

wants to merge 1 commit into from

Conversation

edeustua
Copy link

This PR adds support for the CUE language (https://github.com/cue-lang/cue) by integrating its official language server protocol implementation (cue lsp).

Background:

  • Previously, CUE language support was provided through Dagger's LSP implementation, which has since been discontinued
  • CUE is gaining significant adoption, with over 5.2k GitHub stars
  • Notable projects like Timoni (https://github.com/stefanprodan/timoni) are embracing CUE for configuration management

This change ensures continued and improved CUE support through the official, maintained language server.

@edeustua edeustua requested a review from glepnir as a code owner December 26, 2024 21:30
Comment on lines +3 to +14
local root_files = {
'cue.mod',
'.git',
}

return {
default_config = {
cmd = { 'cue', 'lsp' },
filetypes = { 'cue' },
root_dir = function(fname)
return util.root_pattern(unpack(root_files))(fname)
end,
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
local root_files = {
'cue.mod',
'.git',
}
return {
default_config = {
cmd = { 'cue', 'lsp' },
filetypes = { 'cue' },
root_dir = function(fname)
return util.root_pattern(unpack(root_files))(fname)
end,
return {
default_config = {
cmd = { 'cue', 'lsp' },
filetypes = { 'cue' },
root_dir = function(fname)
return util.root_pattern(unpack({ 'cue.mod', '.git' }))(fname)
end,

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