mirror of
https://github.com/LunarVim/LunarVim.git
synced 2025-08-04 10:05:37 +02:00
Typescript (#311)
* Add typescript formatting support * make sure vue is in the list of filetypes * Add typescriptreact formatting
This commit is contained in:
parent
66e907d43f
commit
a5a706a3cc
2 changed files with 7 additions and 1 deletions
|
@ -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},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue