summaryrefslogtreecommitdiff
path: root/lua/telescope/utils.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/telescope/utils.lua')
-rw-r--r--lua/telescope/utils.lua6
1 files changed, 1 insertions, 5 deletions
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