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:
Paul Stemmet 2024-08-25 18:28:28 +00:00
parent 585e13d3d9
commit b17c56305c
Signed by: Paul Stemmet
GPG Key ID: EDEA539F594E7E75
2 changed files with 17 additions and 0 deletions

View File

@ -0,0 +1 @@
return function(_) end

View File

@ -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