From 2b9981482f55aa44c2b9d9c026ef7da2e2c00154 Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Fri, 25 Nov 2022 16:49:40 +0100 Subject: [PATCH] nvim: Switch to zen-mode and twilight plugins Switched out the old distraction-free writing plugins for neovim variants zen-mode and twilight by folke - they are simple (one command to invoke zen-mode, mapped to `F11`, and that's it), they are written in lua and they work together beautifully (invoking zen-mode also invokes twilight paragraph highlighting). --- nvim/.config/nvim/lua/maps.lua | 3 +-- nvim/.config/nvim/lua/plugins.lua | 16 ++-------------- 2 files changed, 3 insertions(+), 16 deletions(-) diff --git a/nvim/.config/nvim/lua/maps.lua b/nvim/.config/nvim/lua/maps.lua index 8234d08..0869e73 100644 --- a/nvim/.config/nvim/lua/maps.lua +++ b/nvim/.config/nvim/lua/maps.lua @@ -183,8 +183,7 @@ map.x.nore.silent['q'] = 'gq' map.n.nore.silent['Q'] = 'vapJgqap' -- Enter distraction free prose mode with F11 -map.n.nore.silent[''] = ':TZAtaraxis' -map.n.nore.silent[''] = ':TZMinimalist' +map.n.nore.silent[''] = ':ZenMode' -- PLUGIN: fzf-bibtex -- map @@ to automatically insert citation reference at cursor diff --git a/nvim/.config/nvim/lua/plugins.lua b/nvim/.config/nvim/lua/plugins.lua index 3f11bdc..5bc3c37 100644 --- a/nvim/.config/nvim/lua/plugins.lua +++ b/nvim/.config/nvim/lua/plugins.lua @@ -102,20 +102,8 @@ require("packer").startup(function() ft = { "quarto" } } use 'micarmst/vim-spellsync' -- personal dict improvements for git sync - use { -- provide distraction free writing - 'Pocco81/TrueZen.nvim', - config = function() - require("true-zen").setup({ - integrations = { - gitsigns = true, - lualine = true, - tmux = { global = false }, - limelight = true - } - }) - end - } - use { 'junegunn/limelight.vim', event = 'BufRead' } -- provide even distraction free-er writing (lowlight paragraphs) + use { 'folke/zen-mode.nvim', config = require('zen-mode').setup() } -- provide distraction free writing + use 'folke/twilight.nvim' -- provide even distraction free-er writing (lowlight paragraphs) use 'alok/notational-fzf-vim' -- quickly search through the wiki -- languages