mirror of
https://github.com/jdhao/nvim-config.git
synced 2025-06-08 14:14:33 +02:00
Add plugin zen-mode.nvim
This commit is contained in:
parent
fcfada7a89
commit
4f07f06e31
23
lua/config/zen-mode.lua
Normal file
23
lua/config/zen-mode.lua
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
require("zen-mode").setup({
|
||||||
|
window = {
|
||||||
|
backdrop = 0.8, -- shade the backdrop of the Zen window. Set to 1 to keep the same as Normal
|
||||||
|
width = 120,
|
||||||
|
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
|
||||||
|
},
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
|
-- start ZenMode automatically for Markdown
|
||||||
|
vim.cmd([[
|
||||||
|
augroup auto_zen
|
||||||
|
autocmd!
|
||||||
|
autocmd FileType Markdown ZenMode
|
||||||
|
augroup END
|
||||||
|
]])
|
||||||
@ -213,6 +213,8 @@ require("packer").startup({
|
|||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
|
use({'folke/zen-mode.nvim', event = 'VimEnter', config = [[require('config.zen-mode')]]})
|
||||||
|
|
||||||
if vim.g.is_mac then
|
if vim.g.is_mac then
|
||||||
use({ "rhysd/vim-grammarous", ft = { "markdown" } })
|
use({ "rhysd/vim-grammarous", ft = { "markdown" } })
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user