summaryrefslogtreecommitdiff
path: root/lua
diff options
context:
space:
mode:
authorchristianchiarulli <[email protected]>2021-07-09 17:03:22 -0400
committerchristianchiarulli <[email protected]>2021-07-09 17:03:22 -0400
commit04f9f53914a7dd999117ed73c5fa0ab3b0dc95e4 (patch)
tree6975f4571abc8dbd44c57090ab044bc9b850911d /lua
parent986da71d30d2445d0ac8093ce0a65ef1bc87a2f9 (diff)
PoC zen mode hot reload config and refactor
Diffstat (limited to 'lua')
-rw-r--r--lua/default-config.lua4
-rw-r--r--lua/lv-zen/config.lua21
-rw-r--r--lua/lv-zen/init.lua22
-rw-r--r--lua/settings.lua2
4 files changed, 26 insertions, 23 deletions
diff --git a/lua/default-config.lua b/lua/default-config.lua
index 059eb477..317886cc 100644
--- a/lua/default-config.lua
+++ b/lua/default-config.lua
@@ -75,7 +75,7 @@ O = {
-- Builtins
dashboard = { active = false },
colorizer = { active = false },
- zen = { active = false },
+ -- zen = { active = false },
ts_playground = { active = false },
ts_context_commentstring = { active = false },
ts_hintobjects = { active = false },
@@ -265,3 +265,5 @@ O = {
footer = { "chrisatmachine.com" },
},
}
+
+require "lv-zen.config"
diff --git a/lua/lv-zen/config.lua b/lua/lv-zen/config.lua
new file mode 100644
index 00000000..ef1e2bc5
--- /dev/null
+++ b/lua/lv-zen/config.lua
@@ -0,0 +1,21 @@
+O.plugin["zen"] = {
+ window = {
+ backdrop = 1,
+ height = 0.85, -- height of the Zen window
+ options = {
+ signcolumn = "no", -- disable signcolumn
+ number = false, -- disable number column
+ relativenumber = false, -- disable relative numbers
+ -- cursorline = false, -- disable cursorline
+ -- cursorcolumn = false, -- disable cursor column
+ -- foldcolumn = "0", -- disable fold column
+ -- list = false, -- disable whitespace characters
+ },
+ },
+ plugins = {
+ gitsigns = { enabled = false }, -- disables git signs
+ -- your configuration comes here
+ -- or leave it empty to use the default settings
+ -- refer to the configuration section below
+ },
+}
diff --git a/lua/lv-zen/init.lua b/lua/lv-zen/init.lua
index d4a3da5c..ce48a4b0 100644
--- a/lua/lv-zen/init.lua
+++ b/lua/lv-zen/init.lua
@@ -5,26 +5,6 @@ if not status_ok then
end
M.config = function()
- zen_mode.setup {
- window = {
- backdrop = 1,
- height = 0.85, -- height of the Zen window
- options = {
- signcolumn = "no", -- disable signcolumn
- number = false, -- disable number column
- relativenumber = false, -- disable relative numbers
- -- cursorline = false, -- disable cursorline
- -- cursorcolumn = false, -- disable cursor column
- -- foldcolumn = "0", -- disable fold column
- -- list = false, -- disable whitespace characters
- },
- },
- plugins = {
- gitsigns = { enabled = false }, -- disables git signs
- -- your configuration comes here
- -- or leave it empty to use the default settings
- -- refer to the configuration section below
- },
- }
+ zen_mode.setup(O.plugin.zen)
end
return M
diff --git a/lua/settings.lua b/lua/settings.lua
index 2a388e42..cce8d87e 100644
--- a/lua/settings.lua
+++ b/lua/settings.lua
@@ -41,7 +41,7 @@ opt.swapfile = false -- creates a swapfile
opt.termguicolors = true -- set term gui colors (most terminals support this)
opt.timeoutlen = O.timeoutlen -- time to wait for a mapped sequence to complete (in milliseconds)
opt.title = true -- set the title of window to the value of the titlestring
-opt.titlestring = "%<%F%=%l/%L - nvim" -- what the title of the window will be set to
+-- opt.titlestring = "%<%F%=%l/%L - nvim" -- what the title of the window will be set to
opt.undodir = CACHE_PATH .. "/undo" -- set an undo directory
opt.undofile = true -- enable persisten undo
opt.updatetime = 300 -- faster completion