Skip to content

Commit

Permalink
revert(quickfix): folds not working in lazyvim (#306)
Browse files Browse the repository at this point in the history
This reverts these quickfix commits:

#279
#286
  • Loading branch information
gorillamoe authored Nov 1, 2024
1 parent bc2eb2d commit ac61243
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lua/kulala/ui/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ local replace_buffer = function()
local old_bufnr = get_buffer()

local new_bufnr = vim.api.nvim_create_buf(true, false)
vim.bo[new_bufnr].swapfile = false
vim.bo[new_bufnr].buftype = "nofile"

if old_bufnr ~= nil then
for _, win in ipairs(vim.fn.win_findbuf(old_bufnr)) do
Expand All @@ -78,7 +78,6 @@ local open_buffer = function()
if CONFIG.get().winbar then
WINBAR.create_winbar(get_win())
end
vim.bo[get_buffer()].modified = false
vim.api.nvim_set_current_win(prev_win)
end

Expand Down Expand Up @@ -116,7 +115,6 @@ local function set_buffer_contents(contents, ft)
end
local lines = vim.split(contents, "\n")
vim.api.nvim_buf_set_lines(buf, 0, -1, false, lines)
vim.bo[buf].modified = false
end
end

Expand Down Expand Up @@ -445,7 +443,6 @@ end

M.scratchpad = function()
vim.cmd("e " .. GLOBALS.SCRATCHPAD_ID)
vim.cmd("setlocal noswapfile")
vim.cmd("setlocal filetype=http")
vim.api.nvim_buf_set_lines(0, 0, -1, false, CONFIG.get().scratchpad_default_contents)
end
Expand Down

0 comments on commit ac61243

Please sign in to comment.