nvim: add psoxizsh.entrypoint.profile
These are simple "prebaked" functions that can modify the PsoxizshConfig object before it is utilized further. It allows the primary users of this repo to have seperate "profiles" that they can maintain in the main code base, while also allowing others to just pass a similiar function to PsoxizshConfig.profile.
This commit is contained in:
parent
585e13d3d9
commit
b17c56305c
|
@ -0,0 +1 @@
|
|||
return function(_) end
|
|
@ -0,0 +1,16 @@
|
|||
|
||||
local function psox_keybinds()
|
||||
local keys = require 'psoxizsh.key.binds'
|
||||
|
||||
-- Use Ctrl-Shift-<Arrow> for movement
|
||||
keys.Global.NavigateUp.Key = '<C-S-Up>'
|
||||
keys.Global.NavigateLeft.Key = '<C-S-Left>'
|
||||
keys.Global.NavigateRight.Key = '<C-S-Right>'
|
||||
keys.Global.NavigateDown.Key = '<C-S-Down>'
|
||||
end
|
||||
|
||||
local function psox(config)
|
||||
config.keybinds = psox_keybinds
|
||||
end
|
||||
|
||||
return psox
|
Loading…
Reference in New Issue