summaryrefslogtreecommitdiff
path: root/nvim/lsp/ast_grep.lua
diff options
context:
space:
mode:
Diffstat (limited to 'nvim/lsp/ast_grep.lua')
-rwxr-xr-xnvim/lsp/ast_grep.lua37
1 files changed, 0 insertions, 37 deletions
diff --git a/nvim/lsp/ast_grep.lua b/nvim/lsp/ast_grep.lua
deleted file mode 100755
index 6ba3d7c..0000000
--- a/nvim/lsp/ast_grep.lua
+++ /dev/null
@@ -1,37 +0,0 @@
----@brief
----
---- https://ast-grep.github.io/
----
---- ast-grep(sg) is a fast and polyglot tool for code structural search, lint, rewriting at large scale.
---- ast-grep LSP only works in projects that have `sgconfig.y[a]ml` in their root directories.
---- ```sh
---- npm install [-g] @ast-grep/cli
---- ```
-return {
- cmd = { 'ast-grep', 'lsp' },
- workspace_required = true,
- reuse_client = function(client, config)
- config.cmd_cwd = config.root_dir
- return client.config.cmd_cwd == config.cmd_cwd
- end,
- filetypes = { -- https://ast-grep.github.io/reference/languages.html
- 'c',
- 'cpp',
- 'rust',
- 'go',
- 'java',
- 'python',
- 'javascript',
- 'javascriptreact',
- 'javascript.jsx',
- 'typescript',
- 'typescriptreact',
- 'typescript.tsx',
- 'html',
- 'css',
- 'kotlin',
- 'dart',
- 'lua',
- },
- root_markers = { 'sgconfig.yaml', 'sgconfig.yml' },
-}