style: remove references to Neovim 0.10

This commit is contained in:
Folke Lemaitre
2025-09-17 07:14:37 +02:00
parent 919c9e5d09
commit 64ee23f38f
3 changed files with 4 additions and 5 deletions

View File

@@ -53,7 +53,7 @@ local opt = vim.opt
opt.autowrite = true -- Enable auto write opt.autowrite = true -- Enable auto write
-- only set clipboard if not in ssh, to make sure the OSC 52 -- only set clipboard if not in ssh, to make sure the OSC 52
-- integration works automatically. Requires Neovim >= 0.10.0 -- integration works automatically.
opt.clipboard = vim.env.SSH_TTY and "" or "unnamedplus" -- Sync with system clipboard opt.clipboard = vim.env.SSH_TTY and "" or "unnamedplus" -- Sync with system clipboard
opt.completeopt = "menu,menuone,noselect" opt.completeopt = "menu,menuone,noselect"
opt.conceallevel = 2 -- Hide * markup for bold and italic, but not markers with substitutions opt.conceallevel = 2 -- Hide * markup for bold and italic, but not markers with substitutions

View File

@@ -20,7 +20,6 @@ return {
source = "if_many", source = "if_many",
prefix = "", prefix = "",
-- this will set set the prefix to a function that returns the diagnostics icon based on the severity -- this will set set the prefix to a function that returns the diagnostics icon based on the severity
-- this only works on a recent 0.10.0 build. Will be set to "●" when not supported
-- prefix = "icons", -- prefix = "icons",
}, },
severity_sort = true, severity_sort = true,
@@ -33,14 +32,14 @@ return {
}, },
}, },
}, },
-- Enable this to enable the builtin LSP inlay hints on Neovim >= 0.10.0 -- Enable this to enable the builtin LSP inlay hints on Neovim.
-- Be aware that you also will need to properly configure your LSP server to -- Be aware that you also will need to properly configure your LSP server to
-- provide the inlay hints. -- provide the inlay hints.
inlay_hints = { inlay_hints = {
enabled = true, enabled = true,
exclude = { "vue" }, -- filetypes for which you don't want to enable inlay hints exclude = { "vue" }, -- filetypes for which you don't want to enable inlay hints
}, },
-- Enable this to enable the builtin LSP code lenses on Neovim >= 0.10.0 -- Enable this to enable the builtin LSP code lenses on Neovim.
-- Be aware that you also will need to properly configure your LSP server to -- Be aware that you also will need to properly configure your LSP server to
-- provide the code lenses. -- provide the code lenses.
codelens = { codelens = {

View File

@@ -1,7 +1,7 @@
---@class lazyvim.util.ui ---@class lazyvim.util.ui
local M = {} local M = {}
-- optimized treesitter foldexpr for Neovim >= 0.10.0 -- optimized treesitter foldexpr
function M.foldexpr() function M.foldexpr()
local buf = vim.api.nvim_get_current_buf() local buf = vim.api.nvim_get_current_buf()
if vim.b[buf].ts_folds == nil then if vim.b[buf].ts_folds == nil then