Comments (10)
Alright, I'll push a commit to fix this.
from nvim-config.
If I comment these lines in
conform.lua
, it will usetypescript-tools
to format. Otherwise it conflicts?Huhm is it possible to use
prettier
to format and disable format capability oftypescript-tools
🫠?I tried to add
opts.settings.tsserver_format_options = {}
inpmizio/typescript-tools.nvim
but it doesn't disabletypescript-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.
I need to sleep now because it's almost midnight here.
from nvim-config.
No no my bad
It works now
Just because my broken code that it can't format :))
from nvim-config.
Can you test it now? @KevinNitroG
from nvim-config.
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.
Wait a bit I don't know why my prettier doesn't format for me :) But
typescript-tools
is not in the formatter list ofConform
now
That's weird. It also shouldn't be in the formatter list of conform.nvim
.
from nvim-config.
I'll close the issue now.
from nvim-config.
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.
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)
- bug: marks doesn't show on statuscol HOT 5
- feat request: toggle spell-checking HOT 8
- bug: nvchad tabufline error when using lsp code action HOT 14
- feat request: migrate to `nvimtools/none-ls.nvim` HOT 2
- bug: broken config HOT 6
- bug: always reload `lua_ls` libraries references HOT 3
- How to customize formatting? HOT 9
- where's your statusline? HOT 5
- feat request: pre-config `actionlint` for `nvim-lint` HOT 1
- request: change structure in `lua/plugins/lsp/configs/conform.lua` HOT 1
- 1
- request remove `lazy-lock.json` in repo HOT 2
- Request: Custom `statusline` module (`total_lines`) HOT 1
- Feat Request: Show mark in code line sidebar HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nvim-config.