summaryrefslogtreecommitdiff
path: root/lua/default-config.lua
diff options
context:
space:
mode:
authorChristian Chiarulli <[email protected]>2021-07-25 01:24:33 -0400
committerGitHub <[email protected]>2021-07-25 01:24:33 -0400
commit340eacec1fcbec8d83e8272f3d1c2ed0c0e6e371 (patch)
treeec1c73e5b3e6693d79806f73f8dc6bb655eedfe1 /lua/default-config.lua
parentc0a0771cd64e91e5c440054d8db8b61ace3297bc (diff)
support typescript, javascriptreact and typescriptreact (#1084)
Co-authored-by: Chris <[email protected]>
Diffstat (limited to 'lua/default-config.lua')
-rw-r--r--lua/default-config.lua66
1 files changed, 66 insertions, 0 deletions
diff --git a/lua/default-config.lua b/lua/default-config.lua
index fb3a60c6..5ffe5e29 100644
--- a/lua/default-config.lua
+++ b/lua/default-config.lua
@@ -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 = {