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

docs: update readme for neovim setup #559

Merged
merged 7 commits into from
Jul 31, 2024
Merged

docs: update readme for neovim setup #559

merged 7 commits into from
Jul 31, 2024

Conversation

RayGuo-ergou
Copy link
Contributor

@RayGuo-ergou RayGuo-ergou commented Jul 21, 2024

Description

The pull request added neovim setup config that aligned with current vscode config in readme.

  • Also added missing svelte filetype.

Linked Issues

Additional context

Copy link

netlify bot commented Jul 21, 2024

Deploy Preview for melodious-froyo-4871f8 ready!

Name Link
🔨 Latest commit 1bd1658
🔍 Latest deploy log https://app.netlify.com/sites/melodious-froyo-4871f8/deploys/66aac106205f6700081ee3dd
😎 Deploy Preview https://deploy-preview-559--melodious-froyo-4871f8.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

lspconfig.eslint.setup(
{
filetypes = {
"javascript",
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we also add all the default filetypes?

lua =require("lspconfig.server_configurations.eslint").default_config.filetypes
" { "javascript", "javascriptreact", "javascript.jsx", "typescript", "typescriptreact", "typescript.tsx", "vue", "svelte", "astro" }

We're only missing these two: javascript.jsx and typescript.tsx.

Copy link
Contributor

Choose a reason for hiding this comment

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

svelte and yaml are missing too.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hi @thenbe Thanks for your review, as someone who is not doing a lot react. Can I ask why there's two filetype for tsx? E.g. The filetype I get from a tsx file is typescriptreact. Btw yaml is there.

image

Copy link
Contributor

Choose a reason for hiding this comment

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

Seems like they're included in nvim-lspconfig because both variants are widely used: neovim/nvim-lspconfig#2419 (comment). FWIW I also get typescriptreact.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Interesting, I have added these two and I would guess it's a legacy issue ( since I cannot find a clear explanation )?

Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah that's pretty much the same conclusion I reached, that they're included for legacy reasons.

@antfu antfu merged commit 860837e into antfu:main Jul 31, 2024
8 checks passed
@RayGuo-ergou RayGuo-ergou deleted the feature/update_neovim_support branch August 2, 2024 00:38
pnodet added a commit to nivalis-studio/eslint-config that referenced this pull request Aug 13, 2024
* antfu/main: (128 commits)
  chore: update deps
  fix: migrate plugin eslint-comments (antfu#577)
  chore: release v2.25.1
  fix: migrate to new vitest plugin, close antfu#576
  chore: release v2.25.0
  chore: update deps
  chore: typo (antfu#574)
  fix: default prettier `printWidth: 120` not work as expected (antfu#573)
  chore: release v2.24.1
  docs: update readme for neovim setup (antfu#559)
  feat: upgrade `@typescript-eslint` to v8 stable
  chore: update snap
  chore: release v2.24.0
  feat: upgrade `@types/eslint`
  chore: release v2.23.2
  chore: update deps
  chore: release v2.23.1
  chore: update deps
  chore: extract isInEditorEnv function (antfu#556)
  chore: update eslint-plugin-svelte (antfu#553)
  ...
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

Successfully merging this pull request may close these issues.

3 participants