From 421fa7fd60ce9ce12e4914d2917d2ac35c8596de Mon Sep 17 00:00:00 2001 From: ergou Date: Wed, 1 Oct 2025 08:50:19 +1000 Subject: feat(ast_grep): update filetypes #4106 * feat(ast_grep): update the filetypes * revert: revert changes in side `lus/lspconfig/config` as deprecated --- lsp/ast_grep.lua | 25 ++++++++++++++++++------- 1 file changed, 18 insertions(+), 7 deletions(-) (limited to 'lsp/ast_grep.lua') 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' }, } -- cgit v1.2.3-70-g09d2