diff options
| author | rebuilt <[email protected]> | 2021-04-29 08:01:37 +0200 | 
|---|---|---|
| committer | GitHub <[email protected]> | 2021-04-29 02:01:37 -0400 | 
| commit | a5a706a3ccb90746882a229db04464d44d4c6137 (patch) | |
| tree | ec962df8b53e9260caea854fc39e92893280fc80 /lua/lsp | |
| parent | 66e907d43fa6cd78101c11d0e36a97b1186490cd (diff) | |
Typescript (#311)
* Add typescript formatting support
* make sure vue is in the list of filetypes
* Add typescriptreact formatting
Diffstat (limited to 'lua/lsp')
| -rw-r--r-- | lua/lsp/efm-general-ls.lua | 4 | 
1 files changed, 3 insertions, 1 deletions
| diff --git a/lua/lsp/efm-general-ls.lua b/lua/lsp/efm-general-ls.lua index 9488afec..01bc3eed 100644 --- a/lua/lsp/efm-general-ls.lua +++ b/lua/lsp/efm-general-ls.lua @@ -92,7 +92,7 @@ require"lspconfig".efm.setup {      -- init_options = {initializationOptions},      cmd = {DATA_PATH .. "/lspinstall/efm/efm-langserver"},      init_options = {documentFormatting = true, codeAction = false}, -    filetypes = {"lua", "python", "javascriptreact", "javascript", "sh", "html", "css", "json", "yaml", "markdown", "vue"}, +    filetypes = {"lua", "python", "javascriptreact", "javascript", "typescript","typescriptreact","sh", "html", "css", "json", "yaml", "markdown", "vue"},      settings = {          rootMarkers = {".git/"},          languages = { @@ -101,6 +101,8 @@ require"lspconfig".efm.setup {              sh = sh_arguments,              javascript = tsserver_args,              javascriptreact = tsserver_args, +			typescript = tsserver_args, +			typescriptreact = tsserver_args,              html = {prettier},              css = {prettier},              json = {prettier}, | 
