Skip to content

Commit

Permalink
removing baleia
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephan Badragan committed May 5, 2024
1 parent 0f74c21 commit 2d1b69d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
8 changes: 0 additions & 8 deletions lua/grug-far.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -38,7 +34,6 @@ local function createContext()
options = options,
namespace = namespace,
extmarkIds = {},
baleia = baleia,
state = {
isFirstRender = true
}
Expand Down Expand Up @@ -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
2 changes: 0 additions & 2 deletions lua/grug-far/render/results.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2d1b69d

Please sign in to comment.