Skip to content

filetype fixes#1587

Closed
imnotpoz wants to merge 8 commits into
NotAShelf:mainfrom
imnotpoz:asm8300
Closed

filetype fixes#1587
imnotpoz wants to merge 8 commits into
NotAShelf:mainfrom
imnotpoz:asm8300

Conversation

@imnotpoz
Copy link
Copy Markdown
Contributor

@imnotpoz imnotpoz commented May 12, 2026

commit messages contain some links and :checkhealth output

all of these gave me warnings in :checkhealth, all of which are gone with this PR - no more warnings under vim.lsp

Sanity Checking

  • I have updated the changelog as per my changes
  • I have tested, and self-reviewed my code
  • My changes fit guidelines found in hacking nvf
  • Style and consistency
    • I ran Alejandra to format my code (nix fmt)
    • My code conforms to the editorconfig configuration of the project
    • My changes are consistent with the rest of the codebase
  • If new changes are particularly complex:
    • My code includes comments in particularly complex areas
    • I have added a section in the manual
    • (For breaking changes) I have included a migration guide
  • Package(s) built:
    • .#nix (default package)
    • .#maximal
    • .#docs-html (manual, must build)
    • .#docs-linkcheck (optional, please build if adding links)
  • Tested on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin

Add a 👍 reaction to pull requests you find important.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 12, 2026

🚀 Live preview deployed from 0f7a1ff

View it here:

Debug Information

Triggered by: imnotpoz

HEAD at: asm8300

Reruns: 2941

@imnotpoz imnotpoz changed the title languages/asm: filetypes: asm8300 -> asmh8300 filetype fixes May 13, 2026
imnotpoz added 2 commits May 13, 2026 02:24
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).
```
imnotpoz added 6 commits May 13, 2026 02:57
`: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"];
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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"];
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Image

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"];
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think there was some other issue related to this.

"typescript"
# TODO: move to a React module
"typescriptreact"
"typescript.tsx"
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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"];
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you only comment them out with a TODO, to introduce mappings for these extensions as soon as #1365 lands?

@imnotpoz
Copy link
Copy Markdown
Contributor Author

closing as I opened the PR having no idea about how filetypes work :PPP
image

@imnotpoz imnotpoz closed this May 16, 2026
@imnotpoz imnotpoz deleted the asm8300 branch May 16, 2026 22:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants