mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-07-24 21:41:08 +00:00
Merge branch 'main' into feat/avante-edit-vmode
This commit is contained in:
commit
f6cab7bcee
2 changed files with 10 additions and 1 deletions
|
|
@ -1,5 +1,5 @@
|
||||||
*LazyVim.txt* LazyVim docs
|
*LazyVim.txt* LazyVim docs
|
||||||
For Neovim Last change: 2026 April 22
|
For Neovim Last change: 2026 April 26
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
Table of Contents *LazyVim-table-of-contents*
|
Table of Contents *LazyVim-table-of-contents*
|
||||||
|
|
|
||||||
|
|
@ -30,6 +30,15 @@ return {
|
||||||
servers = {
|
servers = {
|
||||||
---@type lspconfig.settings.oxlint
|
---@type lspconfig.settings.oxlint
|
||||||
oxlint = {
|
oxlint = {
|
||||||
|
root_dir = function(bufnr, on_dir)
|
||||||
|
-- prefer the top-level oxlint config if it exists (monorepo support)
|
||||||
|
local git = vim.fs.root(bufnr, ".git")
|
||||||
|
local markers = { ".oxlintrc.json", ".oxlintrc.jsonc", "oxlint.config.ts" }
|
||||||
|
local root = git and vim.fs.root(git, markers) or vim.fs.root(bufnr, markers)
|
||||||
|
if root then
|
||||||
|
on_dir(root)
|
||||||
|
end
|
||||||
|
end,
|
||||||
settings = {
|
settings = {
|
||||||
fixKind = "all",
|
fixKind = "all",
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue