2.1 KiB
What's new?
10.x
-
User extras under
lua/plugins/extrascan now also be managed with LazyExtras -
nvim-ts-autotagis now included by default -
nvim-treesitter-contextis now included by default -
Added extra for
symbols-outline.nvim -
Added extra for
aerial.nvim -
nvim-navichas been removed. If you want to keep usingnvim-navic, you can enable the editor.navic extra -
New
:LazyExtrascommand for managing LazyVim extras -
Improved formatting:
-
LazyVim can now work with multiple formatters. Types:
- primary: only one primary formatter can be active at a time. (conform, none-ls, LSP)
- secondary: multiple secondary formatters can be active (eslint, ...)
-
LazyVim automatically selects the primary formatter based on the current available sources and priorities.
-
New
:LazyFormatcommand for formatting the current selection or buffer -
New
:LazyFormatInfocommand for displaying the active formatters for the current buffer -
Auto-formatting can be disabled with:
vim.g.autoformat = false -- globally vim.b.autoformat = false -- buffer-local
-
-
none-ls.nvimis no longer installed by defaultconform.nvimis now the default formatternvim-lintis now the default linter- If you want to keep using
none-ls.nvim, you can enable the lsp.none-ls extra
-
dashboard.nvimis the new default dashboard plugin- If you want to keep using
alpha.nvim, you can enable the ui.alpha extra
- If you want to keep using
-
Improved root detection:
-
New
:LazyRootcommand that shows info about the root dir detection -
Configurable with
vim.g.root_spec-- LazyVim root dir detection -- Each entry can be: -- * the name of a detector function like `lsp` or `cwd` -- * a pattern or array of patterns like `.git` or `lua`. -- * a function with signature `function(buf) -> string|string[]` vim.g.root_spec = { "lsp", { ".git", "lua" }, "cwd" } -- To disable root detection set to just "cwd" vim.g.root_spec = { "cwd" }
-