feat(nvim): more modernization

This commit is contained in:
Barrett Ruth 2026-03-01 12:17:16 -05:00
parent 98ea8609fd
commit 8e9d8cd00d
Signed by: barrett
GPG key ID: A6C96C9349D2FC81
16 changed files with 533 additions and 551 deletions

View file

@ -1,16 +1,13 @@
vim.g.mapleader = ' '
function _G.map(mapping, opts)
vim.keymap.set(
mapping[1],
mapping[2],
mapping[3],
vim.tbl_extend('keep', opts or {}, { silent = true })
)
end
vim.g.lz_n = {
load = function(name)
vim.cmd('packadd! ' .. name)
end,
}
function _G.bmap(mapping, opts)
_G.map(mapping, vim.tbl_extend('force', opts or {}, { buffer = 0 }))
end
vim.pack.add({
'https://github.com/lumen-oss/lz.n',
})
require('config.pack')
require('lz.n').load('plugins')