You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
211 B
11 lines
211 B
2 years ago
|
local api = vim.api
|
||
|
local M = {}
|
||
|
function M.makeScratch()
|
||
|
api.nvim_command("enew") -- equivalent to :enew
|
||
|
vim.bo[0].buftype=nofile
|
||
|
vim.bo[0].bufhidden=hide
|
||
|
vim.bo[0].swapfile=false
|
||
|
end
|
||
|
return M
|
||
|
|