-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
feat: Add circom-lsp #2848
Conversation
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) |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
Hey @glepnir Can you please review the PR whenever you are free? |
Addresses the feature request #2833
Added circom-lsp.lua.
Ran all the linting checks.
Please look into the PR and merge if OK.
Thanks