mirror of
https://github.com/stevenproctor/dotfiles.git
synced 2026-01-28 09:59:54 -06:00
13 lines
263 B
Lua
13 lines
263 B
Lua
local api = vim.api
|
|
|
|
local M = {}
|
|
|
|
function M.makeScratch()
|
|
api.nvim_command [[enew]] -- equivalent to :enew
|
|
vim.bo[0].buftype=nofile -- set the current buffer's (buffer 0) buftype to nofile
|
|
vim.bo[0].bufhidden=hide
|
|
vim.bo[0].swapfile=false
|
|
end
|
|
|
|
return M
|