diff --git a/lua/grug-far.lua b/lua/grug-far.lua index 5aa6ecd2..915a22ff 100644 --- a/lua/grug-far.lua +++ b/lua/grug-far.lua @@ -18,15 +18,11 @@ end local options = nil local namespace = nil -local baleia = nil -- TODO (sbadragan): do we need some sort of health check? function M.setup(opts) options = with_defaults(opts or {}) namespace = vim.api.nvim_create_namespace('grug-far.nvim') vim.api.nvim_create_user_command("GrugFar", M.grug_far, {}) - - -- TODO (sbadragan): do something if baleia is not available - baleia = require('baleia').setup({}) end local function is_configured() @@ -38,7 +34,6 @@ local function createContext() options = options, namespace = namespace, extmarkIds = {}, - baleia = baleia, state = { isFirstRender = true } @@ -86,9 +81,6 @@ function M.grug_far() -- f:write("stuff") -- f:close() -- end - - -- TODO (sbadragan): to colorize, use rg --color=ansi then baleia? or parse colors yourself... - -- https://github.com/m00qek/baleia.nvim sh end return M diff --git a/lua/grug-far/render/results.lua b/lua/grug-far/render/results.lua index 38d5ed0f..1b549128 100644 --- a/lua/grug-far/render/results.lua +++ b/lua/grug-far/render/results.lua @@ -122,8 +122,6 @@ local function renderResults(params, context) -- write colorized output to buffer local lastline = vim.api.nvim_buf_line_count(buf) - -- TODO (sbadragan): remmmove? - -- context.baleia.buf_set_lines(buf, lastline, lastline, false, chunk_lines) vim.api.nvim_buf_set_lines(buf, lastline, lastline, false, data.lines) -- TODO (sbadragan): refactor to func