feat(nvim): more modernization
This commit is contained in:
parent
98ea8609fd
commit
8e9d8cd00d
16 changed files with 533 additions and 551 deletions
|
|
@ -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')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue