nvim/psoxizsh: misc. tidying of init scripts
Some formatting changes, and an improvement to ReloadConfig/0 to print out a message when configuration has been reloaded
This commit is contained in:
parent
70eb4b400a
commit
a46119d7b8
|
@ -33,12 +33,12 @@ local function psoxizsh_early_config()
|
|||
|
||||
o.list = true
|
||||
o.listchars:append {
|
||||
trail = '\u{02FD}',
|
||||
extends = '\u{22B3}',
|
||||
precedes = '\u{22B2}',
|
||||
nbsp = '\u{02EC}',
|
||||
conceal = '\u{2219}',
|
||||
tab = '\u{2559}\u{254C}\u{2556}',
|
||||
trail = '\u{02FD}',
|
||||
extends = '\u{22B3}',
|
||||
precedes = '\u{22B2}',
|
||||
nbsp = '\u{02EC}',
|
||||
conceal = '\u{2219}',
|
||||
tab = '\u{2559}\u{254C}\u{2556}',
|
||||
}
|
||||
|
||||
o.ignorecase = true
|
||||
|
@ -158,9 +158,15 @@ local function psoxizsh_post_config(plugs)
|
|||
keys.Global.N.Leader.ToggleGutter { action = ToggleGutter }
|
||||
|
||||
-- Reload configuration
|
||||
keys.Global.N.Leader.ReloadConfig { action = function() plugs:reload() end }
|
||||
local function ReloadConfig()
|
||||
plugs:reload()
|
||||
vim.notify('Reloaded Config',
|
||||
vim.log.levels.INFO,
|
||||
{ title = 'Psoxizsh.Plug' }
|
||||
)
|
||||
end
|
||||
|
||||
g.one_allow_italics = 1
|
||||
keys.Global.N.Leader.ReloadConfig { action = ReloadConfig }
|
||||
|
||||
local color_highlights_override = function()
|
||||
local hl = require 'psoxizsh.util.highlight'
|
||||
|
@ -200,8 +206,8 @@ end
|
|||
|
||||
local hooks = {
|
||||
early = { 'PsoxConfigEarly', psoxizsh_early_config },
|
||||
post = { 'PsoxConfigPost', psoxizsh_post_config },
|
||||
late = { 'PsoxConfigLate', psoxizsh_late_config },
|
||||
post = { 'PsoxConfigPost', psoxizsh_post_config },
|
||||
late = { 'PsoxConfigLate', psoxizsh_late_config },
|
||||
}
|
||||
|
||||
return require('psoxizsh.plugins') { hooks = hooks }
|
||||
|
|
Loading…
Reference in New Issue