-
Notifications
You must be signed in to change notification settings - Fork 271
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
Feature Request: Support Neovim/Vim #3290
Comments
@EkeMinusYou, Thank you for your request! We’re glad to hear about your interest in using Atlas HCL with Neovim. The good news is that Neovim/Vim support is on our roadmap. We’ll make sure to update you as soon as it’s available. Stay tuned! |
@EkeMinusYou we have the lsp-server already. Are you vim-expert? Can you help us testing the lsp-server on Vim? If you free please ping me on our Discord |
Thank you for reply! I’m not a Vim expert, but I’d like to help as much as I can. Where can I find the lsp-server? I assumed it exists since there’s a VSCode extension, but I wasn’t sure where to locate it. |
You can run the lsp-server using the |
Thank you! I'll try it. |
lsp-server with neovim is worked for me! Below is the setting using nvim-lspconfig. (I haven't tried it myself, but I think vim can be configured with the same settings.) -- Setup atlas lsp
local configs = require('lspconfig.configs')
if not configs.atlas then
configs.atlas = {
default_config = {
cmd = { 'atlas', 'tool', 'lsp' },
filetypes = {
'atlas-*',
},
root_dir = function(fname)
return lspconfig.util.root_pattern('atlas.hcl')(fname)
end,
single_file_support = true,
settings = {},
},
}
end
lspconfig.atlas.setup() Also, the following autocmd is required to set the language-id.
I've created a PR in nvim-lspconfig to make LSP configuration easier. |
I love using Neovim and want to edit HCL files in it, but it seems there isn’t support for Neovim/Vim, so I’d like to request one.
The text was updated successfully, but these errors were encountered: