e32da24
Branches > main > e32da24 > files / nvim / lua
Add center.nvim to the website
Commit: e32da242587023acd5f1be6e90e752682ffaccfa
Parent: 4a73b6f
1 changed file:
nvim/lua/center.lua view file
@@ -1,3 +1,5 @@+--- License: 0BSD+ --- Keeps the current line centered on the screen always, --- including when at the top of a buffer. --- It does this by adding a bunch of fake virtual lines above the first line of the buf,@@ -5,7 +7,7 @@ local autocmd = vim.api.nvim_create_autocmd local augroup = vim.api.nvim_create_augroup -local ns = vim.api.nvim_create_namespace("dev.grahp.nvim.padding_lines")+local ns = vim.api.nvim_create_namespace("https://grahp.dev/center.nvim") local function set_padding_lines(lines) vim.api.nvim_buf_clear_namespace(0, ns, 0, -1)