Commit e94eed2f authored by Jan Hensel's avatar Jan Hensel 🐧
Browse files

nvim: Use true-zen

parent a099de72
......@@ -27,6 +27,13 @@ nnoremap <F12> :FloatermNew --wintype=split<CR>
nnoremap <leader>nt :tabnew<CR>
" focus
vnoremap <leader>xn :TZNarrow<CR>
nnoremap <leader>xn :TZNarrow<CR>
nnoremap <leader>xf :TZFocus<CR>
nnoremap <leader>xm :TZMinimalist<CR>
nnoremap <leader>xa :TZAtaraxis<CR>
nnoremap <leader>vm :mkview<CR>
nnoremap <leader>vl :loadview<CR>
......@@ -119,7 +126,7 @@ nnoremap L :tabnext<CR>
nnoremap <c-h> :-tabmove<CR>
nnoremap <c-l> :+tabmove<CR>
vnoremap <leader>x c<C-R>=system("IFS='\n' read input; python -c \"print($input,end='')\"",@+)<CR><ESC>
vnoremap <leader>X c<C-R>=system("IFS='\n' read input; python -c \"print($input,end='')\"",@+)<CR><ESC>
" luasnip
imap <silent><expr> <Tab> luasnip#expand_or_jumpable() ? '<Plug>luasnip-expand-or-jump' : '<Tab>'
......
......@@ -41,6 +41,7 @@ lua require("ztf.configure.telescope")
lua require("ztf.configure.luasnip")
lua require("ztf.configure.nvim-goc")
lua require("ztf.configure.spellsitter")
lua require("ztf.configure.true-zen")
" source ~/.config/nvim/configure/which-key.vim
source ~/.config/nvim/configure/floaterm.vim
source ~/.config/nvim/configure/ultisnips.vim
......
......@@ -59,6 +59,8 @@ return require('packer').startup(function()
use { 'iamcco/markdown-preview.nvim' , run = ':call mkdp#util#install()' }
use 'pocco81/true-zen.nvim'
-- colorschemes
use 'ja-he/kurzzug'
use 'Shatur/neovim-ayu'
......
require'true-zen'.setup{
modes = { -- configurations per mode
ataraxis = {
shade = "light", -- if `dark` then dim the padding windows, otherwise if it's `light` it'll brighten said windows
backdrop = 10, -- percentage by which padding windows should be dimmed/brightened. Must be a number between 0 and 1. Set to 0 to keep the same background color
minimum_writing_area = { -- minimum size of main window
width = 80,
height = 24,
},
quit_untoggles = true, -- type :q or :qa to quit Ataraxis mode
padding = { -- padding windows
left = 20,
right = 20,
top = 5,
bottom = 5,
},
open_callback = nil, -- run a function when opening Ataraxis mode
close_callback = nil, -- run a function when closing Ataraxis mode
},
minimalist = {
ignored_buf_types = { "nofile" }, -- save current options from any window except ones displaying these kinds of buffers
options = { -- options to be disabled when entering Minimalist mode
number = false,
relativenumber = false,
showtabline = 0,
signcolumn = "no",
statusline = "",
cmdheight = 1,
laststatus = 0,
showcmd = false,
showmode = false,
ruler = false,
numberwidth = 1
},
open_callback = nil, -- run a function when opening Minimalist mode
close_callback = nil, -- run a function when closing Minimalist mode
},
narrow = {
--- change the style of the fold lines. Set it to:
--- `informative`: to get nice pre-baked folds
--- `invisible`: hide them
--- function() end: pass a custom func with your fold lines. See :h foldtext
folds_style = "invisible",
run_ataraxis = true, -- display narrowed text in a Ataraxis session
open_callback = nil, -- run a function when opening Narrow mode
close_callback = nil, -- run a function when closing Narrow mode
},
focus = {
open_callback = nil, -- run a function when opening Focus mode
close_callback = nil, -- run a function when closing Focus mode
}
},
integrations = {
tmux = false, -- hide tmux status bar in (minimalist, ataraxis)
kitty = { -- increment font size in Kitty. Note: you must set `allow_remote_control socket-only` and `listen_on unix:/tmp/kitty` in your personal config (ataraxis)
enabled = false,
font = "+3"
},
twilight = false -- enable twilight (ataraxis)
},
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment