Comment on page
Neovim Plugin
📘 The Trunk Check Neovim Plugin is available for beta!Try it out by following the instructions below.
The Neovim Plugin needs the following prerequisites:
Tool | Minimum Required Version |
---|---|
CLI | 1.17.0 |
Neovim | v0.9.2 |
sed , tee , timeout |
require("lazy").setup({
{
"trunk-io/neovim-trunk",
lazy = false,
-- optionally pin a version
tag = "v0.1.0",
-- these are optional config arguments (defaults shown)
config = {
-- trunkPath = "trunk",
-- lspArgs = {},
-- formatOnSave = true,
-- formatOnSaveTimeout = 10, -- seconds
-- logLevel = "info"
},
main = "trunk",
dependencies = {"nvim-telescope/telescope.nvim", "nvim-lua/plenary.nvim"}
}
})
- Provide inline diagnostics and auto-fixes
- Format files on save
- Display the linters that Trunk runs on a file
The Trunk Check Neovim Plugin is in beta with limited support. If you encounter any issues, feel free to reach out on Slack.
Last modified 1mo ago