mirror of
https://github.com/Murmele/Gittyup.git
synced 2024-09-11 10:45:39 +03:00
81cf2e6e5e
This commit adds a new Settings entry "ShowWhitespaceinEditor" ("editor/view/showWhitespace") to the Settings class, and a new checkbox in the Editor settings dialog. This setting defaults to off/false, preserving the current behaviour of the application. If this setting is toggled to on, whitespace is rendered in the HunkWidget and BlameEditor views.
29 lines
421 B
Lua
29 lines
421 B
Lua
local family = "Courier New"
|
|
local size = 10
|
|
if platform == "mac" then
|
|
family = "Menlo"
|
|
size = 12
|
|
elseif platform == "win" then
|
|
family = "Consolas"
|
|
elseif platform == "x11" then
|
|
family = "Monospace"
|
|
end
|
|
|
|
return {
|
|
font = {
|
|
family = family,
|
|
size = size
|
|
},
|
|
view = {
|
|
showWhitespace = false
|
|
},
|
|
indent = {
|
|
tabs = true,
|
|
width = 4,
|
|
tabwidth = 4
|
|
},
|
|
blame = {
|
|
heatmap = true
|
|
}
|
|
}
|