Skip to content

Commit

Permalink
Merge branch 'main' into fix/fgheng#5
Browse files Browse the repository at this point in the history
  • Loading branch information
mauricekraus committed Dec 18, 2022
2 parents 0920a8b + 3f7113f commit abec49f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ require('winbar').setup({

icons = {
file_icon_default = '',
seperator = '>',
separator = '>',
editor_state = '',
lock_icon = '',
},
Expand Down
2 changes: 1 addition & 1 deletion lua/winbar/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ M.defaults = {

icons = {
file_icon_default = '',
seperator = '>',
separator = '>',
editor_state = '',
lock_icon = '',
},
Expand Down
6 changes: 3 additions & 3 deletions lua/winbar/winbar.lua
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ local winbar_file = function()
end)

for i = 1, #file_path_list do
value = value .. '%#' .. hl_winbar_path .. '#' .. file_path_list[i] .. ' ' .. opts.icons.seperator .. ' %*'
value = value .. '%#' .. hl_winbar_path .. '#' .. file_path_list[i] .. ' ' .. opts.icons.separator .. ' %*'
end
end
value = value .. file_icon
Expand All @@ -70,13 +70,13 @@ local winbar_file = function()

end

local _, gps = pcall(require, 'nvim-navic')
local winbar_gps = function()
local _, gps = pcall(require, 'nvim-navic')
local status_ok, gps_location = pcall(gps.get_location, {})
local value = ''

if status_ok and gps.is_available() and gps_location ~= 'error' and not f.isempty(gps_location) then
value = '%#' .. hl_winbar_symbols .. '# ' .. opts.icons.seperator .. ' %*'
value = '%#' .. hl_winbar_symbols .. '# ' .. opts.icons.separator .. ' %*'
value = value .. '%#' .. hl_winbar_symbols .. '#' .. gps_location .. '%*'
end

Expand Down

0 comments on commit abec49f

Please sign in to comment.