plugings: move from true-zen to zen-mode

- Removes the true-zen.nim plugin.
- Adds the zen-mode.nvim plugin in hope of a better and simpler
  experience.

Co-Authored-by: iGor milhit <igor@milhit.ch>
main
iGor milhit 2024-08-13 11:44:20 +02:00
parent 484594cde7
commit 01ad6147aa
Signed by: igor
GPG Key ID: 692D97C3D0228A99
3 changed files with 29 additions and 36 deletions

View File

@ -93,7 +93,7 @@ I won't provide links for each of these plugins as they are easily to be found.
- `autopairs.nvim`.
- `Comment.nvim` to comment lines and blocs.
- `ident-blankline.nvim` to improve readability of indentation.
- `true-zen.nvim` for a good zen mode.
- `zen-mode.nvim` for a good zen mode.
- `toggleterm.nvim` to quickly get a terminal. Might find a better one.
- `rainbow-csv.nvim` to manage CSV files.
- `venv-selector.nvim` to ease python virtual env.

View File

@ -1,35 +0,0 @@
local api = vim.api
api.nvim_set_keymap("n", "<leader>zn", ":TZNarrow<CR>", {})
api.nvim_set_keymap("v", "<leader>zn", ":'<,'>TZNarrow<CR>", {})
api.nvim_set_keymap("n", "<leader>zf", ":TZFocus<CR>", {})
api.nvim_set_keymap("n", "<leader>zm", ":TZMinimalist<CR>", {})
api.nvim_set_keymap("n", "<leader>za", ":TZAtaraxis<CR>", {})
return {
"Pocco81/true-zen.nvim",
-- Twilight allows to dim text outside of the cursor line.
dependencies = {
"folke/twilight.nvim",
opts = {
-- Set the context to null in order to avoid highlighting to much
-- paragraphs in markdown.
context = 0,
},
},
config = function ()
require('true-zen').setup({
modes = {
ataraxis = {
minimum_writing_area = {
width = 100
}
}
},
integrations = {
twilight = true,
lualine = true
}
})
end
}

View File

@ -0,0 +1,28 @@
-- Install and configure zen-mode.nvim
-- https://github.com/folke/zen-mode.nvim
-- Set a keymap to toggle zen mode
vim.keymap.set(
"n",
"<leader>z",
"<cmd>ZenMode<cr>",
{ desc = "[zen-mode] Toggle zen mode" }
)
return {
"folke/zen-mode.nvim",
opts = {
-- your configuration comes here
-- or leave it empty to use the default settings
-- refer to the configuration section below
window = {
backdrop = 1,
height = .8,
width = 90,
options = {
signcolumn = "no",
foldcolumn = "0",
}
}
}
}