Closed EdmundsEcho closed 1 month ago
This is because ruff-lsp
or ruff_lsp
are not built-in formatters. You're attempting to use a formatter with no definition.
Also, if you want to use ruff-lsp for formatting, you should set it up as a LSP server and then conform will automatically use it if you format with lsp_fallback = true
. There's no need to do any conform-specific configuration to format with a LSP
Neovim version (nvim -v)
0.10.0
Operating system/version
MacOs 14.4
Add the debug logs
log_level = vim.log.levels.DEBUG
and pasted the log contents below.Log file
16:53:39[INFO] Run stylua on /Users/edmund/dotfiles/nvim-plugins.lua 16:53:39[DEBUG] Run command: { "stylua", "--config-path", "/Users/edmund/.stylua.toml", "--search-parent-directories", "--stdin-filepath", "/Users/edmund/dotfiles/nvim-plugins.lua", "-" } 16:53:39[DEBUG] Run CWD: /Users/edmund 16:53:39[DEBUG] stylua exited with code 0 16:55:20[DEBUG] Running formatters on /Volumes/active-etl/tnc-py/tnc/www/routes/inspection.py: {} 16:55:20[DEBUG] Running LSP formatter on /Volumes/active-etl/tnc-py/tnc/www/routes/inspection.py
Describe the bug
The :checkhealth reports that ruff-lsp is unavailable. It is true that ruff-lsp does not have a configuration file like prettier, however it is configured and seems to be working (it formats the py file.
============================================================================== conform: require("conform.health").check()
conform.nvim report ~
What is the severity of this bug?
tolerable (can work around it)
Steps To Reproduce
run checkhealth
Expected Behavior
rust-lsp should be OK despite not having a configuration file.
Minimal example file
xx
Minimal init.lua
Additional context
xx