dotfiles/nvim/.config/nvim/lua/scratchpad.lua
Marty Oehme 00b15048df
[nvim] Add gitlens, scratchfile lua plugins
Added gitlens to show git blame for cursorline after short time. Added
makescratch plugin to create a new scratch window via simple command.
2020-05-09 14:46:49 +02:00

11 lines
183 B
Lua

local api = vim.api
local M= {}
function M.makeScratch()
api.nvim_command('enew')
-- vim.bo[0].bufhidden=hide
vim.bo[0].buftype=nofile
vim.bo[0].swapfile=false
end
return M