Giter VIP home page Giter VIP logo

Comments (10)

Alexis12119 avatar Alexis12119 commented on August 23, 2024 1

Alright, I'll push a commit to fix this.

from nvim-config.

Alexis12119 avatar Alexis12119 commented on August 23, 2024 1

If I comment these lines in conform.lua, it will use typescript-tools to format. Otherwise it conflicts?

Huhm is it possible to use prettier to format and disable format capability of typescript-tools 🫠?

I tried to add opts.settings.tsserver_format_options = {} in pmizio/typescript-tools.nvim but it doesn't disable typescript-tools format capability.

Thank you.

I enabled lsp_fallback which means when the conform formatter isn't available and the LSP has a capability to format the file, conform will use LSP to format.

from nvim-config.

Alexis12119 avatar Alexis12119 commented on August 23, 2024 1

I need to sleep now because it's almost midnight here.

from nvim-config.

KevinNitroG avatar KevinNitroG commented on August 23, 2024 1

No no my bad
It works now
Just because my broken code that it can't format :))

from nvim-config.

Alexis12119 avatar Alexis12119 commented on August 23, 2024

Can you test it now? @KevinNitroG

from nvim-config.

KevinNitroG avatar KevinNitroG commented on August 23, 2024

Wait a bit I don't know why my prettier doesn't format for me :)
But typescript-tools is not in the formatter list of Conform now

from nvim-config.

Alexis12119 avatar Alexis12119 commented on August 23, 2024

Wait a bit I don't know why my prettier doesn't format for me :) But typescript-tools is not in the formatter list of Conform now

That's weird. It also shouldn't be in the formatter list of conform.nvim.

from nvim-config.

Alexis12119 avatar Alexis12119 commented on August 23, 2024

I'll close the issue now.

from nvim-config.

KevinNitroG avatar KevinNitroG commented on August 23, 2024
Log file: C:\Users\kevinnitro\AppData\Local\nvim-data\conform.log
          additional information: trailing character
          
          23:54:44[ERROR] Formatter 'stylua' error: error: could not format from stdin: failed to format from stdin: error parsing: error occurred while creating ast: unexpected token `}`. (starting from line 81, character 1 and ending on line 81, character 2)
          additional information: trailing character
          
          15:08:41[WARN] Delayed Neovim exit by 385ms to wait for formatting to complete
          15:50:13[WARN] Delayed Neovim exit by 413ms to wait for formatting to complete
          15:51:45[WARN] Delayed Neovim exit by 402ms to wait for formatting to complete
          16:01:35[WARN] Delayed Neovim exit by 403ms to wait for formatting to complete
          21:53:41[WARN] Formatter 'prettier' was interrupted
          22:49:40[WARN] Formatter 'prettier' was interrupted

Formatters for this buffer:
prettier ready (scss, typescript, typescriptreact, yaml, markdown, html, css, vue, json, flow, graphql, javascriptreact, javascript, less) C:\Users\kevinnitro\AppData\Local\nvim-data\mason\bin\prettier.cmd

Other formatters:
clang_format ready (c, cpp) C:\Users\kevinnitro\scoop\apps\llvm\current\bin\clang-format.EXE
csharpier unavailable: Command not found
gofumpt unavailable: Command not found
ruff_fix ready (python) C:\Users\kevinnitro\AppData\Local\nvim-data\mason\bin\ruff.CMD
ruff_format ready (python) C:\Users\kevinnitro\AppData\Local\nvim-data\mason\bin\ruff.CMD
shfmt ready (sh) C:\Users\kevinnitro\AppData\Local\nvim-data\mason\bin\shfmt.CMD
stylua ready (lua) C:\Users\kevinnitro\AppData\Local\nvim-data\mason\bin\stylua.CMD

Here is my :ConformInfo now
But prettier doesn't format the code 🫥 Huhm let me try to switch to Linux (:

from nvim-config.

KevinNitroG avatar KevinNitroG commented on August 23, 2024

I need to sleep now because it's almost midnight here.

Alright take a good sleep :) and the prettier doesn't format in my Linux either 😆

from nvim-config.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.