mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2024-12-19 07:29:49 +01:00
ts_ls: prevent from formatting
prevent ts_ls from touching the formating. ts formatting: remove useless indent
This commit is contained in:
parent
73660af2e3
commit
6e2f84ebf9
1 changed files with 11 additions and 4 deletions
|
@ -22,9 +22,15 @@
|
|||
ts_ls = {
|
||||
package = pkgs.typescript-language-server;
|
||||
lspConfig = ''
|
||||
|
||||
lspconfig.ts_ls.setup {
|
||||
capabilities = capabilities;
|
||||
on_attach = attach_keymaps,
|
||||
on_attach = (
|
||||
function (client, bufnr)
|
||||
attach_keymaps(client, bufnr);
|
||||
client.server_capabilities.documentFormattingProvider = false;
|
||||
end
|
||||
) ,
|
||||
cmd = ${
|
||||
if isList cfg.lsp.package
|
||||
then expToLua cfg.lsp.package
|
||||
|
@ -79,6 +85,7 @@
|
|||
ls_sources,
|
||||
null_ls.builtins.formatting.prettier.with({
|
||||
command = "${cfg.format.package}/bin/prettier",
|
||||
filetypes = { "typescript" },
|
||||
})
|
||||
)
|
||||
'';
|
||||
|
|
Loading…
Reference in a new issue