Skip to content

Commit

Permalink
fix(scratchpad): noswapfile (mistweaverco#286)
Browse files Browse the repository at this point in the history
  • Loading branch information
gorillamoe authored and iamxiaojianzheng committed Oct 24, 2024
1 parent 125577d commit 2a18dcb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/kulala/ui/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ end

M.scratchpad = function()
vim.cmd("e " .. GLOBALS.SCRATCHPAD_ID)
vim.cmd("setlocal swapfile=false")
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 2a18dcb

Please sign in to comment.