mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-23 17:28:57 +02:00
style: comment the selene example
This commit is contained in:
parent
0f7a009d1c
commit
886d49eb89
1 changed files with 7 additions and 7 deletions
|
@ -14,13 +14,13 @@ return {
|
||||||
---@type table<string,table>
|
---@type table<string,table>
|
||||||
linter_opts = {
|
linter_opts = {
|
||||||
-- -- Example of using selene only when a selene.toml file is present
|
-- -- Example of using selene only when a selene.toml file is present
|
||||||
selene = {
|
-- selene = {
|
||||||
-- `condition` is another LazyVim extension that allows you to
|
-- -- `condition` is another LazyVim extension that allows you to
|
||||||
-- dynamically enable/disable linters based on the context.
|
-- -- dynamically enable/disable linters based on the context.
|
||||||
condition = function(ctx)
|
-- condition = function(ctx)
|
||||||
return vim.fs.find({ "selene.toml" }, { path = ctx.filename, upward = true })[1]
|
-- return vim.fs.find({ "selene.toml" }, { path = ctx.filename, upward = true })[1]
|
||||||
end,
|
-- end,
|
||||||
},
|
-- },
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
config = function(_, opts)
|
config = function(_, opts)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue