Add configs for zen-mode and twilight
This commit is contained in:
parent
79f730c6ab
commit
d1350909c5
4
config/nvim/lua/config/twilight.lua
Normal file
4
config/nvim/lua/config/twilight.lua
Normal file
|
@ -0,0 +1,4 @@
|
|||
return {
|
||||
context = 10,
|
||||
treesitter = true,
|
||||
}
|
21
config/nvim/lua/config/zen_mode.lua
Normal file
21
config/nvim/lua/config/zen_mode.lua
Normal file
|
@ -0,0 +1,21 @@
|
|||
return {
|
||||
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 = {
|
||||
options = {
|
||||
enabled = true,
|
||||
},
|
||||
twilight = { enabled = true },
|
||||
gitsigns = { enabled = true },
|
||||
tmux = { enabled = true },
|
||||
},
|
||||
}
|
|
@ -1,14 +1,11 @@
|
|||
return {
|
||||
"folke/zen-mode.nvim",
|
||||
cmd = "ZenMode",
|
||||
config = function() require("zen-mode").setup() end,
|
||||
config = function() require("zen-mode").setup(require "config.zen_mode") end,
|
||||
dependencies = {
|
||||
"folke/twilight.nvim",
|
||||
cmd = {
|
||||
"TwilightEnable",
|
||||
"Twilight",
|
||||
},
|
||||
config = function() require("twilight").setup() end,
|
||||
cmd = "Twilight",
|
||||
config = function() require("twilight").setup(require "config.twilight") end,
|
||||
dependencies = {
|
||||
"nvim-treesitter",
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue