Skip to content

Commit

Permalink
refactor(editing-support): factor out prefix from defintion (#266)
Browse files Browse the repository at this point in the history
True-zen - use local prefix and document it
  • Loading branch information
Sacro authored Jun 7, 2023
1 parent 4886b2b commit 441362f
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions lua/astrocommunity/editing-support/true-zen-nvim/true-zen-nvim.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
local prefix = "<leader>z"
local utils = require "astronvim.utils"
return {
"Pocco81/true-zen.nvim",
Expand All @@ -11,22 +12,26 @@ return {
end,
keys = {
{
"<leader>zf",
prefix,
desc = "True Zen",
},
{
prefix .. "f",
function() require("true-zen").focus() end,
desc = "Focus (True Zen)",
},
{
"<leader>zm",
prefix .. "m",
function() require("true-zen").minimalist() end,
desc = "Minimalist (True Zen)",
},
{
"<leader>za",
prefix .. "a",
function() require("true-zen").ataraxis() end,
desc = "Ataraxis (True Zen)",
},
{
"<leader>zn",
prefix .. "n",
function()
local truezen = require "true-zen"
local first = 0
Expand All @@ -36,7 +41,7 @@ return {
desc = "Narrow (True Zen)",
},
{
"<leader>zn",
prefix .. "n",
function()
local truezen = require "true-zen"
local first = vim.fn.line "v"
Expand Down

0 comments on commit 441362f

Please sign in to comment.