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: Add circom-lsp #2848

Merged
merged 5 commits into from
Oct 3, 2023
Merged

feat: Add circom-lsp #2848

merged 5 commits into from
Oct 3, 2023

Conversation

Gokul2003g
Copy link
Contributor

Addresses the feature request #2833
Added circom-lsp.lua.
Ran all the linting checks.

Please look into the PR and merge if OK.

Thanks

@Gokul2003g Gokul2003g requested a review from glepnir as a code owner October 1, 2023 16:55
lua/lspconfig/server_configurations/circom-lsp.lua Outdated Show resolved Hide resolved
filetypes = { 'circom' },
root_dir = function()
local root = util.root_pattern(root_files)(vim.fn.expand '%:p')
return root or vim.api.nvim_buf_get_name(0)
Copy link
Member

Choose a reason for hiding this comment

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

i don't think use current bufname is useful if you want root is current dir just single_file_support = true

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes I agree
Simplify the configuration by setting single_file_support to true. This approach is more straightforward, as you don't need to specify root_files or create a custom root_dir 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.

Set single_file_support to true for improved simplicity.

@Gokul2003g Gokul2003g requested a review from glepnir October 2, 2023 14:38
@Gokul2003g
Copy link
Contributor Author

Hey @glepnir Can you please review the PR whenever you are free?

@glepnir glepnir merged commit 9a5d873 into neovim:master Oct 3, 2023
8 of 9 checks passed
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