From 141dc6d55e4f53ee9527adc164a0d39725394bfd Mon Sep 17 00:00:00 2001 From: Simon Hauser Date: Wed, 9 Dec 2020 21:46:41 +0100 Subject: ci: Add luacheck ci job (#317) * Add luacheck ci job * Fix most of the linting issues * fixup: lint Co-authored-by: TJ DeVries --- lua/telescope/utils.lua | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'lua/telescope/utils.lua') diff --git a/lua/telescope/utils.lua b/lua/telescope/utils.lua index 81f4408..e1ef7f3 100644 --- a/lua/telescope/utils.lua +++ b/lua/telescope/utils.lua @@ -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 -- cgit v1.2.3