Skip to content

lsp/health: warn about invalid filetype #36899

@justinmk

Description

@justinmk

Problem

users often get confused and will specify filetype='rs' when they mean 'rust', and similar.

vim.lsp.config('rust-analyzer', {
  cmd = '...'
  filetypes = { 'rs' },
})

Expected behavior

lsp healthcheck should check if the filetypes are actually known filetypes. this will greatly improve the OOTB UX.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions