add ts_ls and enable rustfmt again
This commit is contained in:
parent
55e3a1902f
commit
cebf16e11d
2 changed files with 3 additions and 1 deletions
|
@ -148,6 +148,7 @@ local servers = {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
html = {},
|
html = {},
|
||||||
|
ts_ls = {},
|
||||||
cssls = {},
|
cssls = {},
|
||||||
clangd = {},
|
clangd = {},
|
||||||
pyright = {},
|
pyright = {},
|
||||||
|
|
|
@ -36,6 +36,7 @@ return {
|
||||||
end,
|
end,
|
||||||
formatters_by_ft = {
|
formatters_by_ft = {
|
||||||
['_'] = { 'prettier' },
|
['_'] = { 'prettier' },
|
||||||
|
rust = { 'rust-analyzer' },
|
||||||
lua = { 'stylua' },
|
lua = { 'stylua' },
|
||||||
json = { 'jq' },
|
json = { 'jq' },
|
||||||
-- rust = { 'rustfmt' }, -- does not need one with the lsp there
|
-- rust = { 'rustfmt' }, -- does not need one with the lsp there
|
||||||
|
@ -47,7 +48,7 @@ return {
|
||||||
--
|
--
|
||||||
-- You can use a sub-list to tell conform to run *until* a formatter
|
-- You can use a sub-list to tell conform to run *until* a formatter
|
||||||
-- is found.
|
-- is found.
|
||||||
javascript = { 'prettierd', 'prettier' },
|
javascript = { 'prettier' },
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Reference in a new issue