diff options
author | amelia squires <[email protected]> | 2025-03-04 03:04:24 -0600 |
---|---|---|
committer | amelia squires <[email protected]> | 2025-03-04 03:04:24 -0600 |
commit | d56fb1ab6e76a23817c6836249edd44cf6252554 (patch) | |
tree | e48cc02ebdbe6e03121e249980431b236aeaec65 /fnl/layouts | |
parent | bea349474eddf5b1b4e30e7c2212a1b9503baddf (diff) |
settings + bar
Diffstat (limited to 'fnl/layouts')
-rw-r--r-- | fnl/layouts/ide.fnl | 15 | ||||
-rw-r--r-- | fnl/layouts/quiet.fnl | 15 | ||||
-rw-r--r-- | fnl/layouts/writing.fnl | 17 |
3 files changed, 39 insertions, 8 deletions
diff --git a/fnl/layouts/ide.fnl b/fnl/layouts/ide.fnl index 8ba6182..10858d5 100644 --- a/fnl/layouts/ide.fnl +++ b/fnl/layouts/ide.fnl @@ -1,4 +1,11 @@ -(fn [] -(vim.cmd "ToggleTerm direction=horizontal") -(vim.cmd "Neotree toggle") -(vim.cmd "Outline")) +{ +:enable (fn [] + (vim.cmd "ToggleTerm direction=horizontal") + (vim.cmd "Neotree toggle") + (vim.cmd "Outline")) + +:disable (fn [] + (vim.cmd "ToggleTerm direction=horizontal") + (vim.cmd "Neotree toggle") + (vim.cmd "Outline")) +} diff --git a/fnl/layouts/quiet.fnl b/fnl/layouts/quiet.fnl index 73d8b0f..3435628 100644 --- a/fnl/layouts/quiet.fnl +++ b/fnl/layouts/quiet.fnl @@ -1,4 +1,11 @@ -(fn [] -(tset vim.opt :number false) -(tset vim.o :signcolumn :no) -(tset vim.opt :fillchars {:eob " "})) +{ +:enable (fn [] + (tset vim.opt :number false) + (tset vim.o :signcolumn :no) + (tset vim.opt :fillchars {:eob " "})) + +:disable (fn [] + (tset vim.opt :number true) + (tset vim.o :signcolumn :yes) + (tset vim.opt :fillchars {:eob "~"})) +} diff --git a/fnl/layouts/writing.fnl b/fnl/layouts/writing.fnl new file mode 100644 index 0000000..76a4e38 --- /dev/null +++ b/fnl/layouts/writing.fnl @@ -0,0 +1,17 @@ +{ +:enable (fn [] + (tset vim.opt :number false) + (tset vim.o :signcolumn :no) + (tset vim.opt :fillchars {:eob " "}) + (tset vim.opt :wrap true) + (tset vim.opt :linebreak true) + (_G.opt.trans-enable)) + +:disable (fn [] + (tset vim.opt :number true) + (tset vim.o :signcolumn :yes) + (tset vim.opt :fillchars {:eob "~"}) + (tset vim.opt :wrap false) + (tset vim.opt :linebreak false) + (_G.opt.trans-disable)) +} |