Moved config.treeview_size
from config.lua
to treeview.lua
This commit is contained in:
parent
5102088aca
commit
15129b49a6
|
@ -8,7 +8,6 @@ config.mouse_wheel_scroll = 50
|
||||||
config.file_size_limit = 10
|
config.file_size_limit = 10
|
||||||
config.symbol_pattern = "[%a_][%w_]*"
|
config.symbol_pattern = "[%a_][%w_]*"
|
||||||
config.non_word_chars = " \t\n/\\()\"':,.;<>~!@#$%^&*|+=[]{}`?-"
|
config.non_word_chars = " \t\n/\\()\"':,.;<>~!@#$%^&*|+=[]{}`?-"
|
||||||
config.treeview_size = 200 * SCALE
|
|
||||||
config.undo_merge_timeout = 0.3
|
config.undo_merge_timeout = 0.3
|
||||||
config.max_undos = 10000
|
config.max_undos = 10000
|
||||||
config.highlight_current_line = true
|
config.highlight_current_line = true
|
||||||
|
|
|
@ -6,9 +6,7 @@ local keymap = require "core.keymap"
|
||||||
local style = require "core.style"
|
local style = require "core.style"
|
||||||
local View = require "core.view"
|
local View = require "core.view"
|
||||||
|
|
||||||
|
config.treeview_size = 200 * SCALE
|
||||||
local TreeView = View:extend()
|
|
||||||
|
|
||||||
|
|
||||||
local function get_depth(filename)
|
local function get_depth(filename)
|
||||||
local n = 0
|
local n = 0
|
||||||
|
@ -19,6 +17,8 @@ local function get_depth(filename)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
local TreeView = View:extend()
|
||||||
|
|
||||||
function TreeView:new()
|
function TreeView:new()
|
||||||
TreeView.super.new(self)
|
TreeView.super.new(self)
|
||||||
self.scrollable = true
|
self.scrollable = true
|
||||||
|
|
Loading…
Reference in a new issue