aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lsp/ast_grep.lua25
1 files changed, 18 insertions, 7 deletions
diff --git a/lsp/ast_grep.lua b/lsp/ast_grep.lua
index 47388a98..0cf9e72d 100644
--- a/lsp/ast_grep.lua
+++ b/lsp/ast_grep.lua
@@ -17,23 +17,34 @@ return {
return client.config.cmd_cwd == config.cmd_cwd
end,
filetypes = { -- https://ast-grep.github.io/reference/languages.html
+ 'bash',
'c',
'cpp',
- 'rust',
+ 'csharp',
+ 'css',
+ 'elixir',
'go',
+ 'haskell',
+ 'html',
'java',
- 'python',
'javascript',
'javascriptreact',
'javascript.jsx',
+ 'json',
+ 'kotlin',
+ 'lua',
+ 'nix',
+ 'php',
+ 'python',
+ 'ruby',
+ 'rust',
+ 'scala',
+ 'solidity',
+ 'swift',
'typescript',
'typescriptreact',
'typescript.tsx',
- 'html',
- 'css',
- 'kotlin',
- 'dart',
- 'lua',
+ 'yaml',
},
root_markers = { 'sgconfig.yaml', 'sgconfig.yml' },
}