You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have set log_level = vim.log.levels.DEBUG and pasted the log contents below.
Log file
no conform.log is produced with this error.
Describe the bug
I am running nvim 0.9.0 so am trying to use an older version of this plugin. I have pinned conform v7.1.0 to the lazy package manager using the tag attribute. However when i launch nvim i am still getting error message 'conform.nvim requires nvim 0.10+'.
also tried the branch and version attributes in lazy.nvim and receive the same error. I am not able to run any formatting and no log file is produced.
see minimal init.lua below for my conform config.
What is the severity of this bug?
blocking (cannot use plugin)
Steps To Reproduce
install nvim 0.9.0
install lazy.nvim
add conform plugin to lazy.nvim using the below configuration
launch nvim
Expected Behavior
i should be able to use conform.nvim as i am using v7.1.0 with nvim 0.9.0
Minimal example file
No response
Minimal init.lua
-- DO NOT change the paths and don't remove the colorschemelocalroot=vim.fn.fnamemodify("./.repro", ":p")
-- set stdpaths to use .reprofor_, nameinipairs({ "config", "data", "state", "cache" }) dovim.env[("XDG_%s_HOME"):format(name:upper())] =root.."/" ..nameend-- bootstrap lazylocallazypath=root.."/plugins/lazy.nvim"ifnotvim.loop.fs_stat(lazypath) thenvim.fn.system({
"git",
"clone",
"--filter=blob:none",
"--single-branch",
"https://github.com/folke/lazy.nvim.git",
lazypath,
})
endvim.opt.runtimepath:prepend(lazypath)
-- install pluginslocalplugins= {
"folke/tokyonight.nvim",
{
'stevearc/conform.nvim',
dependencies= { 'nvim-lua/plenary.nvim' },
tag="v7.1.0",
--branch = "nvim-0.9",--version = "7.1.0",config=function()
require("conform").setup({
log_level=vim.log.levels.ERROR,
formatters_by_ft= {
lua= { "stylua" },
-- Conform will run multiple formatters sequentiallypython= { "isort", "black" },
},
format_on_save= {
-- These options will be passed to conform.format()timeout_ms=2000,
lsp_format="fallback",
},
})
end
},
-- add any other plugins here
}
require("lazy").setup(plugins, {
root=root.."/plugins",
})
vim.cmd.colorscheme("tokyonight")
-- add anything else here
Additional context
No response
The text was updated successfully, but these errors were encountered:
If you are getting the error message conform.nvim requires nvim 0.10+ then you are not on the correct version, because that string did not exist in the source code until it was updated. This sounds like either a bug or a configuration issue with lazy.nvim. FWIW I tried the repro.lua file and it worked fine for me; installed the correct version. I tested on a mac, though, so there is a remote possibility that there is some Windows-specific issue.
Neovim version (nvim -v)
NVIM v0.9.0
Operating system/version
Windows 10
Read debugging tips
Add the debug logs
log_level = vim.log.levels.DEBUG
and pasted the log contents below.Log file
no conform.log is produced with this error.
Describe the bug
I am running nvim 0.9.0 so am trying to use an older version of this plugin. I have pinned conform v7.1.0 to the lazy package manager using the tag attribute. However when i launch nvim i am still getting error message 'conform.nvim requires nvim 0.10+'.
also tried the branch and version attributes in lazy.nvim and receive the same error. I am not able to run any formatting and no log file is produced.
see minimal init.lua below for my conform config.
What is the severity of this bug?
blocking (cannot use plugin)
Steps To Reproduce
Expected Behavior
i should be able to use conform.nvim as i am using v7.1.0 with nvim 0.9.0
Minimal example file
No response
Minimal init.lua
Additional context
No response
The text was updated successfully, but these errors were encountered: