filetype fixes#1587
Conversation
https://github.com/neovim/neovim/blob/master/runtime/syntax/asmh8300.vim `:checkhealth` output: ``` -⚠️ WARNING Unknown filetype 'asm8300' (Hint: filename extension != filetype). ```
`:checkhealth` output: ``` -⚠️ WARNING Unknown filetype 'ash' (Hint: filename extension != filetype). -⚠️ WARNING Unknown filetype 'dash' (Hint: filename extension != filetype). ```
`:checkhealth` output: ``` -⚠️ WARNING Unknown filetype 'vert' (Hint: filename extension != filetype). -⚠️ WARNING Unknown filetype 'tesc' (Hint: filename extension != filetype). -⚠️ WARNING Unknown filetype 'tese' (Hint: filename extension != filetype). -⚠️ WARNING Unknown filetype 'frag' (Hint: filename extension != filetype). -⚠️ WARNING Unknown filetype 'geom' (Hint: filename extension != filetype). -⚠️ WARNING Unknown filetype 'comp' (Hint: filename extension != filetype). ```
`:checkhealth` output: ``` -⚠️ WARNING Unknown filetype 'gotmpl' (Hint: filename extension != filetype). ```
`:checkhealth` output: ``` -⚠️ WARNING Unknown filetype 'mdx' (Hint: filename extension != filetype). ```
`:checkhealth` output: ``` -⚠️ WARNING Unknown filetype 'menhir' (Hint: filename extension != filetype). -⚠️ WARNING Unknown filetype 'ocamlinterface' (Hint: filename extension != filetype). -⚠️ WARNING Unknown filetype 'ocamllex' (Hint: filename extension != filetype). -⚠️ WARNING Unknown filetype 'reason' (Hint: filename extension != filetype). ```
`:checkhealth` output: ``` -⚠️ WARNING Unknown filetype 'shtml' (Hint: filename extension != filetype). -⚠️ WARNING Unknown filetype 'htm' (Hint: filename extension != filetype). ```
`:checkhealth` output: ``` -⚠️ WARNING Unknown filetype 'typescript.tsx' (Hint: filename extension != filetype). -⚠️ WARNING Unknown filetype 'javascript.jsx' (Hint: filename extension != filetype). ```
| presets = genAttrs cfg.lsp.servers (_: {enable = true;}); | ||
| servers = genAttrs cfg.lsp.servers (_: { | ||
| filetypes = ["asm" "nasm" "masm" "vmasm" "fasm" "tasm" "tiasm" "asm68k" "asm8300"]; | ||
| filetypes = ["asm" "nasm" "masm" "vmasm" "fasm" "tasm" "tiasm" "asm68k" "asmh8300"]; |
There was a problem hiding this comment.
will already be fixed in !1583 which changes the asm module a bit
| presets = genAttrs cfg.lsp.servers (_: {enable = true;}); | ||
| servers = genAttrs cfg.lsp.servers (_: { | ||
| filetypes = ["go" "gomod" "gosum" "gowork" "gotmpl"]; | ||
| filetypes = ["go" "gomod" "gosum" "gowork"]; |
There was a problem hiding this comment.
don't remove gotmpl, instead we need to introduce this filetype or LSPs and Tree-sitter will in fact behave wrongly.
In my NVF config I have
to map, but to actually introduce this filetype we need #1365 , cause raf doesn't want these auto commands in NVF rn.
| presets = genAttrs cfg.lsp.servers (_: {enable = true;}); | ||
| servers = genAttrs cfg.lsp.servers (_: { | ||
| filetypes = ["markdown" "mdx"]; | ||
| filetypes = ["markdown"]; |
There was a problem hiding this comment.
I think there was some other issue related to this.
| "typescript" | ||
| # TODO: move to a React module | ||
| "typescriptreact" | ||
| "typescript.tsx" |
There was a problem hiding this comment.
Not a react dev, but I think this will break some LSPs,
We should really only comment out and wait for #1365 so we can introduce extra types where actual required and remove things that are nonsense.
| presets = genAttrs cfg.lsp.servers (_: {enable = true;}); | ||
| servers = genAttrs cfg.lsp.servers (_: { | ||
| filetypes = ["glsl" "vert" "tesc" "tese" "frag" "geom" "comp"]; | ||
| filetypes = ["glsl"]; |
There was a problem hiding this comment.
Could you only comment them out with a TODO, to introduce mappings for these extensions as soon as #1365 lands?

commit messages contain some links and
:checkhealthoutputall of these gave me warnings in
:checkhealth, all of which are gone with this PR - no more warnings undervim.lspSanity Checking
nix fmt).#nix(default package).#maximal.#docs-html(manual, must build).#docs-linkcheck(optional, please build if adding links)x86_64-linuxaarch64-linuxx86_64-darwinaarch64-darwinAdd a 👍 reaction to pull requests you find important.