summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2022-01-13 21:57:49 +0100
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2022-01-13 21:57:49 +0100
commitf75ad229a77f75fbf0b8469b98106b2019e0b694 (patch)
tree70c1ef54042b6e6369022bfb237e8028e9574e27
parentd4824e3fe6a9bbe6ee53ed0b4546818a0dc9e97e (diff)
Add zen mode
-rw-r--r--lua/config/zen.lua42
-rw-r--r--lua/plugins.lua9
2 files changed, 51 insertions, 0 deletions
diff --git a/lua/config/zen.lua b/lua/config/zen.lua
new file mode 100644
index 0000000..2a1086d
--- /dev/null
+++ b/lua/config/zen.lua
@@ -0,0 +1,42 @@
+-- Zen mode
+
+local status_ok, zen_mode = pcall(require, "zen-mode")
+if not status_ok then
+return
+end
+
+zen_mode.setup {
+window = {
+ backdrop = 1,
+ height = 0.9, -- height of the Zen window
+ width = 0.65,
+ 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
+ tmux = { enabled = true },
+ twilight = { enabled = true },
+},
+-- on_open = function()
+-- vim.lsp.diagnostic.disable()
+-- vim.cmd [[
+-- set foldlevel=10
+-- IndentBlanklineDisable
+-- ]]
+-- end,
+-- on_close = function()
+-- vim.lsp.diagnostic.enable()
+-- vim.cmd [[
+-- set foldlevel=5
+-- IndentBlanklineEnable
+-- ]]
+-- end,
+}
diff --git a/lua/plugins.lua b/lua/plugins.lua
index f993785..9cbb5ca 100644
--- a/lua/plugins.lua
+++ b/lua/plugins.lua
@@ -43,4 +43,13 @@ return {
{ "goolord/alpha-nvim" },
{ "antoinemadec/FixCursorHold.nvim" }, -- This is needed to fix lsp doc highlight
{ "folke/which-key.nvim" },
+ { "folke/zen-mode.nvim",
+ config = function()
+ require("zen-mode").setup {
+ -- your configuration comes here
+ -- or leave it empty to use the default settings
+ -- refer to the configuration section below
+ }
+ end
+ },
}