ci: Add luacheck ci job (#317)
* Add luacheck ci job * Fix most of the linting issues * fixup: lint Co-authored-by: TJ DeVries <devries.timothyj@gmail.com>
This commit is contained in:
@@ -79,10 +79,6 @@ utils.quickfix_items_to_entries = function(locations)
|
||||
return results
|
||||
end
|
||||
|
||||
utils.new_ngram = function()
|
||||
return require("telescope._private.NGram"):new()
|
||||
end
|
||||
|
||||
-- TODO: Figure out how to do this... could include in plenary :)
|
||||
-- NOTE: Don't use this yet. It will segfault sometimes.
|
||||
--
|
||||
@@ -142,7 +138,7 @@ function utils.buf_delete(bufnr)
|
||||
if bufnr == nil then return end
|
||||
|
||||
-- Suppress the buffer deleted message for those with &report<2
|
||||
start_report = vim.o.report
|
||||
local start_report = vim.o.report
|
||||
if start_report < 2 then vim.o.report = 2 end
|
||||
|
||||
if vim.api.nvim_buf_is_valid(bufnr) and vim.api.nvim_buf_is_loaded(bufnr) then
|
||||
|
||||
Reference in New Issue
Block a user