mirror of
https://github.com/neovim/nvim-lspconfig.git
synced 2026-05-06 17:16:09 +02:00
Problem: 78596b61 removed javascript.jsx and typescript.tsx from the lsp/ configs, but the same invalid filetypes remain in the legacy lua/lspconfig/configs/ files. These still surface in checkhealth warnings since the legacy configs get merged at runtime. Solution: remove javascript.jsx and typescript.tsx from all legacy config filetypes lists. The correct filetypes (javascriptreact, typescriptreact) are already present in each list.
32 lines
803 B
Lua
32 lines
803 B
Lua
-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
-- This config is DEPRECATED.
|
|
-- Use the configs in `lsp/` instead (requires Nvim 0.11).
|
|
--
|
|
-- ALL configs in `lua/lspconfig/configs/` will be DELETED.
|
|
-- They exist only to support Nvim 0.10 or older.
|
|
-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
local util = require 'lspconfig.util'
|
|
|
|
return {
|
|
default_config = {
|
|
cmd = { 'npx', '--no-install', 'flow', 'lsp' },
|
|
filetypes = { 'javascript', 'javascriptreact' },
|
|
root_dir = util.root_pattern '.flowconfig',
|
|
},
|
|
docs = {
|
|
description = [[
|
|
https://flow.org/
|
|
https://github.com/facebook/flow
|
|
|
|
See below for how to setup Flow itself.
|
|
https://flow.org/en/docs/install/
|
|
|
|
See below for lsp command options.
|
|
|
|
```sh
|
|
npx flow lsp --help
|
|
```
|
|
]],
|
|
},
|
|
}
|