pocco81 / true-zen.nvim

🦝 Clean and elegant distraction-free writing for NeoVim
GNU General Public License v3.0
977 stars 28 forks source link

How to install using Lazy.nvim? #127

Open clockworkpc opened 5 months ago

clockworkpc commented 5 months ago

Using NVChad and nothing gets installed from this entry:

return {
  {
    "pocco81/true-zen.nvim",
    cmd = { "TZAtaraxis", },
    config = require("configs.true-zen")
  },
}
madelaney commented 5 months ago

I tend to do things long form, so there may be an abbreviated way to do this but here is how I have the plugin configured:

 {
    'pocco81/true-zen.nvim',
    opts = {
      integrations = {
        tmux = true,
      },
    },
    config = function(_plugin, opts)
      require('true-zen').setup(opts)
    end,
    keys = {
      {
        '<leader>zn',
        '<cmd>TZNarrow<cr>',
        mode = 'n',
        desc = 'Narrow focused',
        noremap = true,
      },
      {
        '<leader>zn',
        "<cmd>'<,'>TZNarrow<cr>",
        mode = 'v',
        desc = 'Ranged narrow focused',
        noremap = true,
      },
      {
        '<leader>zf',
        '<cmd>TZFocus<cr>',
        mode = 'n',
        desc = 'Focued mode',
        noremap = true,
      },
      {
        '<leader>zm',
        '<cmd>TZMinimalist<cr>',
        mode = 'n',
        desc = 'Minimalist mode',
        noremap = true,
      },
      {
        '<leader>za',
        '<cmd>TZAtaraxis<cr>',
        mode = 'n',
        desc = 'Ataraxis mode',
        noremap = true,
      },
    },
  }