Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update nvim-lspconfig's default config #1047

Closed
k1ng440 opened this issue Jul 24, 2023 · 1 comment
Closed

Update nvim-lspconfig's default config #1047

k1ng440 opened this issue Jul 24, 2023 · 1 comment

Comments

@k1ng440
Copy link
Contributor

k1ng440 commented Jul 24, 2023

Hi,
I wanted to bring to your attention that the nvim-lspconfig currently has a configuration for quick-lint-js for javascript filetype only (config). I think it would be beneficial to create a pull request and include typescript support as well.

@k1ng440 k1ng440 closed this as completed Jul 24, 2023
@strager
Copy link
Collaborator

strager commented Jul 25, 2023

TypeScript support is still experimental, thus opt-in. Here's the documentation for using quick-lint-js TypeScript support with nvim-lspconfig:

To lint TypeScript and TypeScript JSX files, not just JavaScript and JSX
files, add `"typescript"` and `"typescriptreact"` to `filetypes`
(EXPERIMENTAL. Subject to change in future versions of quick-lint-js.)
(Introduced in quick-lint-js version 2.11.0.): >
require('lspconfig/quick_lint_js').setup {
filetypes = {
"javascript", "javascriptreact",
"typescript", "typescriptreact",
},
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants