diff options
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/lspconfig/configs/atlas.lua | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/lua/lspconfig/configs/atlas.lua b/lua/lspconfig/configs/atlas.lua index b862f3d7..3751f90b 100644 --- a/lua/lspconfig/configs/atlas.lua +++ b/lua/lspconfig/configs/atlas.lua @@ -49,6 +49,20 @@ vim.filetype.add({ }) ``` +Optionally, tell treesitter to treat Atlas filetypes as HCL for better syntax highlighting: + +```lua +vim.treesitter.language.register('hcl', 'atlas-config') +vim.treesitter.language.register('hcl', 'atlas-schema-mysql') +vim.treesitter.language.register('hcl', 'atlas-schema-postgresql') +vim.treesitter.language.register('hcl', 'atlas-schema-sqlite') +vim.treesitter.language.register('hcl', 'atlas-schema-clickhouse') +vim.treesitter.language.register('hcl', 'atlas-schema-mssql') +vim.treesitter.language.register('hcl', 'atlas-schema-redshift') +vim.treesitter.language.register('hcl', 'atlas-test') +vim.treesitter.language.register('hcl', 'atlas-plan') +``` + ]], }, } |
