diff options
| author | Charles Taylor <charlestaylor95@gmail.com> | 2025-12-22 14:20:19 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-12-22 14:20:19 -0500 |
| commit | 32055d7b0f80e6c4a276c2af9b139662e115dd6a (patch) | |
| tree | feff24bd813d66661c8d0b83412f9b7baf548518 /lsp | |
| parent | docs: update configs.md (diff) | |
| download | nvim-lspconfig-32055d7b0f80e6c4a276c2af9b139662e115dd6a.tar nvim-lspconfig-32055d7b0f80e6c4a276c2af9b139662e115dd6a.tar.gz nvim-lspconfig-32055d7b0f80e6c4a276c2af9b139662e115dd6a.tar.bz2 nvim-lspconfig-32055d7b0f80e6c4a276c2af9b139662e115dd6a.tar.lz nvim-lspconfig-32055d7b0f80e6c4a276c2af9b139662e115dd6a.tar.xz nvim-lspconfig-32055d7b0f80e6c4a276c2af9b139662e115dd6a.tar.zst nvim-lspconfig-32055d7b0f80e6c4a276c2af9b139662e115dd6a.zip | |
fix(ast_grep): invalid filetypes #4253
Problem:
`csharp` is not a valid filetype in neovim. csharp files are of filetype `cs`.
You can see a warning by doing
```lua
vim.ls.enable({ "ast_grep"})
```
`:checkheatlh lsp` or `:LspInfo` shows this warning:
```
vim.lsp: Enabled Configurations
⚠️ WARNING Unknown filetype 'csharp' (Hint: filename extension != filetype).
```
Diffstat (limited to 'lsp')
| -rw-r--r-- | lsp/ast_grep.lua | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lsp/ast_grep.lua b/lsp/ast_grep.lua index 0cf9e72d..5ac225f1 100644 --- a/lsp/ast_grep.lua +++ b/lsp/ast_grep.lua @@ -20,7 +20,7 @@ return { 'bash', 'c', 'cpp', - 'csharp', + 'cs', 'css', 'elixir', 'go', @@ -29,7 +29,6 @@ return { 'java', 'javascript', 'javascriptreact', - 'javascript.jsx', 'json', 'kotlin', 'lua', @@ -43,7 +42,6 @@ return { 'swift', 'typescript', 'typescriptreact', - 'typescript.tsx', 'yaml', }, root_markers = { 'sgconfig.yaml', 'sgconfig.yml' }, |
