mirror of
https://github.com/LazyVim/starter.git
synced 2026-07-25 05:51:04 +00:00
Install zen mode
This commit is contained in:
parent
6740b313de
commit
c716b4cb4c
1 changed files with 19 additions and 0 deletions
19
lua/plugins/zen_mode.lua
Normal file
19
lua/plugins/zen_mode.lua
Normal file
|
|
@ -0,0 +1,19 @@
|
||||||
|
return {
|
||||||
|
"folke/zen-mode.nvim",
|
||||||
|
config = function()
|
||||||
|
local map = LazyVim.safe_keymap_set
|
||||||
|
|
||||||
|
local cmd = function()
|
||||||
|
local zen = require("zen-mode")
|
||||||
|
zen.setup({
|
||||||
|
window = {
|
||||||
|
width = 140,
|
||||||
|
options = {},
|
||||||
|
},
|
||||||
|
})
|
||||||
|
zen.toggle()
|
||||||
|
end
|
||||||
|
|
||||||
|
map("n", "<leader>zz", cmd, { desc = "Toggle Zen Mode" })
|
||||||
|
end,
|
||||||
|
}
|
||||||
Loading…
Add table
Reference in a new issue