lintplus icon indicating copy to clipboard operation
lintplus copied to clipboard

Feature Request - Realtime linting without saving

Open VarLad opened this issue 3 years ago • 3 comments

An option for the above

VarLad avatar Jun 23 '21 12:06 VarLad

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 avatar Jun 23 '21 12:06 liquidev

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

VarLad avatar Jun 23 '21 12:06 VarLad

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

liquidev avatar Jun 23 '21 13:06 liquidev