Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

revert(quickfix): folds not working in lazyvim #306

Merged
merged 1 commit into from
Nov 1, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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