mirror of
https://github.com/LunarVim/LunarVim.git
synced 2025-08-02 17:14:56 +02:00
support typescript, javascriptreact and typescriptreact (#1084)
Co-authored-by: Chris <chris@macbook.local>
This commit is contained in:
parent
c0a0771cd6
commit
340eacec1f
1 changed files with 66 additions and 0 deletions
|
@ -497,6 +497,28 @@ lvim.lang = {
|
|||
},
|
||||
},
|
||||
},
|
||||
javascriptreact = {
|
||||
-- @usage can be prettier or eslint
|
||||
formatter = {
|
||||
exe = "prettier",
|
||||
args = {},
|
||||
},
|
||||
linters = {
|
||||
"eslint",
|
||||
},
|
||||
lsp = {
|
||||
provider = "tsserver",
|
||||
setup = {
|
||||
cmd = {
|
||||
-- TODO:
|
||||
DATA_PATH .. "/lspinstall/typescript/node_modules/.bin/typescript-language-server",
|
||||
"--stdio",
|
||||
},
|
||||
on_attach = require("lsp").common_on_attach,
|
||||
capabilities = require("lsp").common_capabilities(),
|
||||
},
|
||||
},
|
||||
},
|
||||
python = {
|
||||
-- @usage can be flake8 or yapf
|
||||
formatter = {
|
||||
|
@ -664,6 +686,50 @@ lvim.lang = {
|
|||
},
|
||||
},
|
||||
},
|
||||
typescript = {
|
||||
-- @usage can be prettier or eslint
|
||||
formatter = {
|
||||
exe = "prettier",
|
||||
args = {},
|
||||
},
|
||||
linters = {
|
||||
"eslint",
|
||||
},
|
||||
lsp = {
|
||||
provider = "tsserver",
|
||||
setup = {
|
||||
cmd = {
|
||||
-- TODO:
|
||||
DATA_PATH .. "/lspinstall/typescript/node_modules/.bin/typescript-language-server",
|
||||
"--stdio",
|
||||
},
|
||||
on_attach = require("lsp").common_on_attach,
|
||||
capabilities = require("lsp").common_capabilities(),
|
||||
},
|
||||
},
|
||||
},
|
||||
typescriptreact = {
|
||||
-- @usage can be prettier or eslint
|
||||
formatter = {
|
||||
exe = "prettier",
|
||||
args = {},
|
||||
},
|
||||
linters = {
|
||||
"eslint",
|
||||
},
|
||||
lsp = {
|
||||
provider = "tsserver",
|
||||
setup = {
|
||||
cmd = {
|
||||
-- TODO:
|
||||
DATA_PATH .. "/lspinstall/typescript/node_modules/.bin/typescript-language-server",
|
||||
"--stdio",
|
||||
},
|
||||
on_attach = require("lsp").common_on_attach,
|
||||
capabilities = require("lsp").common_capabilities(),
|
||||
},
|
||||
},
|
||||
},
|
||||
vim = {
|
||||
linters = { "vint" },
|
||||
lsp = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue