Merge branch 'main' into dev

This commit is contained in:
chuyanlong 2025-09-17 17:25:51 +08:00
commit 0d3d041ba3
9 changed files with 23 additions and 11 deletions

View file

@ -13,7 +13,7 @@ Going forward, **LazyVim** requires **Neovim** `>= 0.11.2`, and drops support fo
- migrated **mason.nvim** and **mason-lspconfig.nvim** to `v2.x`
- migrated to [nvim-treesitter](https://github.com/nvim-treesitter/nvim-treesitter/tree/main) **main** branch
- with the new version, the `tree-sitter` cli is **required** to install parsers
- best to run `:checkhealth nvim_treesitter` after updating
- best to run `:checkhealth nvim-treesitter` after updating
- replace `nvim-treesitter` incremental selection with `flash.nvim`, since it is no longer supported
- enabled [blink.cmp](https://github.com/saghen/blink.cmp) **cmdline** completions
- use **LSP** based folding when available (disable with `nvim-lspconfig.folds.enabled = false`)

View file

@ -1,5 +1,7 @@
return {
-- auto pairs
-- Auto pairs
-- Automatically inserts a matching closing character
-- when you type an opening character like `"`, `[`, or `(`.
{
"nvim-mini/mini.pairs",
event = "VeryLazy",
@ -20,14 +22,18 @@ return {
end,
},
-- comments
-- Improves comment syntax, lets Neovim handle multiple
-- types of comments for a single language, and relaxes rules
-- for uncommenting.
{
"folke/ts-comments.nvim",
event = "VeryLazy",
opts = {},
},
-- Better text-objects
-- Extends the a & i text objects, this adds the ability to select
-- arguments, function calls, text within quotes and brackets, and to
-- repeat those selections to select an outer text object.
{
"nvim-mini/mini.ai",
event = "VeryLazy",
@ -64,6 +70,8 @@ return {
end,
},
-- Configures LuaLS to support auto-completion and type checking
-- while editing your Neovim configuration.
{
"folke/lazydev.nvim",
ft = "lua",

View file

@ -9,6 +9,8 @@ return {
"compile_commands.json",
"compile_flags.txt",
"configure.ac", -- AutoTools
"meson.build",
"build.ninja",
},
})
end,
@ -61,9 +63,6 @@ return {
{ "<leader>ch", "<cmd>ClangdSwitchSourceHeader<cr>", desc = "Switch Source/Header (C/C++)" },
},
root_markers = {
".clangd",
".clang-tidy",
".clang-format",
"compile_commands.json",
"compile_flags.txt",
"configure.ac", -- AutoTools

View file

@ -1,5 +1,5 @@
return {
-- edgy
-- Create and display predefined window layouts.
{
"folke/edgy.nvim",
event = "VeryLazy",

View file

@ -8,7 +8,8 @@ return {
},
},
-- setup animate
-- Animates many common Neovim actions, like scrolling,
-- moving the cursor, and resizing windows.
{
"nvim-mini/mini.animate",
event = "VeryLazy",

View file

@ -1,3 +1,4 @@
-- Animates cursor movement with a smear effect.
return {
"sphamba/smear-cursor.nvim",
event = "VeryLazy",

View file

@ -1,4 +1,6 @@
return {
-- Asynchronously calls language-specific linter tools and reports
-- their results via the `vim.diagnostic` module.
{
"mfussenegger/nvim-lint",
event = "LazyFile",

View file

@ -53,7 +53,7 @@ return {
if vim.fn.executable("tree-sitter") == 0 then
LazyVim.error({
"**treesitter-main** requires the `tree-sitter` CLI executable to be installed.",
"Run `:checkhealth nvim_treesitter` for more information.",
"Run `:checkhealth nvim-treesitter` for more information.",
})
return
end

View file

@ -60,7 +60,8 @@ return {
end,
},
-- statusline
-- Displays a fancy status line with git status,
-- LSP diagnostics, filetype information, and more.
{
"nvim-lualine/lualine.nvim",
event = "VeryLazy",