Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request - Realtime linting without saving #10

Open
VarLad opened this issue Jun 23, 2021 · 3 comments
Open

Feature Request - Realtime linting without saving #10

VarLad opened this issue Jun 23, 2021 · 3 comments
Labels
enhancement New feature or request

Comments

@VarLad
Copy link

VarLad commented Jun 23, 2021

An option for the above

@liquidev
Copy link
Owner

Some linters aren't really fast enough for this, so I'd make this a per-linter setting.

local config = require "core.config"
local lintplus = require "plugins.lintplus"

config.lint = {}
config.lint.realtime_delay = 100 -- ms
config.lint.realtime_linters = { luacheck = true }

lintplus.setup.enable_realtime()

@liquidev liquidev added the enhancement New feature or request label Jun 23, 2021
@VarLad
Copy link
Author

VarLad commented Jun 23, 2021

Wait, does this work if I put it in init.lua?

@liquidev
Copy link
Owner

@VarLad Not yet, I was just making a little sketch of what the API may look like 😛

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants