out with the old
This commit is contained in:
parent
cdabbb456d
commit
4b28dd83a0
25 changed files with 0 additions and 1297 deletions
|
@ -1,64 +0,0 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
set -e
|
||||
|
||||
deps=(
|
||||
rg # ripgrep
|
||||
lazygit
|
||||
gdu
|
||||
btm # bottom
|
||||
python
|
||||
node
|
||||
tree-sitter
|
||||
)
|
||||
|
||||
# TODO: make sure tree-sitter is rust version?
|
||||
|
||||
is-cmd() {
|
||||
if [ -x "$(command -v "$1")" ]; then
|
||||
return 0
|
||||
else
|
||||
return 1
|
||||
fi
|
||||
}
|
||||
|
||||
install-astronvim() {
|
||||
echo "Installing astronvim"
|
||||
|
||||
if [[ -d ~/.config/nvim ]]; then
|
||||
echo "backing up old nvim config"
|
||||
mv ~/.config/nvim ~/.config/nvim.bak-"$(date +'%s')"
|
||||
fi
|
||||
|
||||
if [[ -d ~/.local/share/nvim ]]; then
|
||||
echo "backing up old nvim directory"
|
||||
mv ~/.local/share/nvim ~/.local/share/nvim-"$(date +'%s')"
|
||||
mkdir ~/.local/share/nvim
|
||||
fi
|
||||
|
||||
git clone https://github.com/AstroNvim/AstroNvim ~/.config/nvim
|
||||
|
||||
# echo "add brute force method of ignoring version complaints"
|
||||
# git -C "$HOME/.config/nvim" am "$HOME/.config/astronvim/patches/0001-remove-version-check.patch"
|
||||
|
||||
nvim --headless -c 'autocmd User PackerComplete quitall'
|
||||
}
|
||||
|
||||
echo "Checking for optional dependencies"
|
||||
|
||||
check-dep() {
|
||||
if is-cmd "$1"; then
|
||||
printf '%15s \033[32m%s\033[0m\n' "$1" 'yes'
|
||||
else
|
||||
printf '%15s \033[31m%s\033[0m\n' "$1" 'no'
|
||||
fi
|
||||
}
|
||||
|
||||
install-astronvim
|
||||
|
||||
echo
|
||||
echo "checking for dependencies"
|
||||
|
||||
for dep in "${deps[@]}"; do
|
||||
check-dep "$dep"
|
||||
done
|
|
@ -1 +0,0 @@
|
|||
return "catppuccin"
|
|
@ -1,45 +0,0 @@
|
|||
return {
|
||||
-- Ansi-shadow
|
||||
[[ ███╗ ██╗███████╗ ██████╗ ██╗ ██╗██╗███╗ ███╗]],
|
||||
[[ ████╗ ██║██╔════╝██╔═══██╗██║ ██║██║████╗ ████║]],
|
||||
[[ ██╔██╗ ██║█████╗ ██║ ██║██║ ██║██║██╔████╔██║]],
|
||||
[[ ██║╚██╗██║██╔══╝ ██║ ██║╚██╗ ██╔╝██║██║╚██╔╝██║]],
|
||||
[[ ██║ ╚████║███████╗╚██████╔╝ ╚████╔╝ ██║██║ ╚═╝ ██║]],
|
||||
[[ ╚═╝ ╚═══╝╚══════╝ ╚═════╝ ╚═══╝ ╚═╝╚═╝ ╚═╝]],
|
||||
}
|
||||
--Big-money
|
||||
-- [[ /$$ ]],
|
||||
-- [[ |__/ ]],
|
||||
-- [[ /$$$$$$$ /$$$$$$ /$$$$$$ /$$ /$$ /$$ /$$$$$$/$$$$ ]],
|
||||
-- [[| $$__ $$ /$$__ $$ /$$__ $$| $$ /$$/| $$| $$_ $$_ $$]],
|
||||
-- [[| $$ \ $$| $$$$$$$$| $$ \ $$ \ $$/$$/ | $$| $$ \ $$ \ $$]],
|
||||
-- [[| $$ | $$| $$_____/| $$ | $$ \ $$$/ | $$| $$ | $$ | $$]],
|
||||
-- [[| $$ | $$| $$$$$$$| $$$$$$/ \ $/ | $$| $$ | $$ | $$]],
|
||||
-- [[|__/ |__/ \_______/ \______/ \_/ |__/|__/ |__/ |__/]],
|
||||
--
|
||||
-- [[ _______________________________________ ]],
|
||||
-- [[ |,---"-----------------------------"---,| ]],
|
||||
-- [[ ||___ 16 bit.................... || ]],
|
||||
-- [[ ||====\ :HHHHHHHHHHHHHHHHHHHHHHHHHHH || ]],
|
||||
-- [[ ||=====):H c> nvim H || ]],
|
||||
-- [[ ||====/ :H H || ]],
|
||||
-- [[ || :H H || ]],
|
||||
-- [[ ||PORTFO:H H || ]],
|
||||
-- [[ || :HHHHHHHHHHHHHHHHHHHHHHHHHHH || ]],
|
||||
-- [[ ||_____,_________________________,_____|| ]],
|
||||
-- [[ |)_____)-----.| /I\ATARI |.------(_____(| ]],
|
||||
-- [[ //"""""""|_____|=----------=|______|"""""""\ ]],
|
||||
-- [[ // _| _| _| _| _| _| _| _| _| _| _| _| _| _| \ ]],
|
||||
-- [[ // ___| _| _| _| _| _| _| _| _| _| _| _| | | \ ]],
|
||||
-- [[ |/ ___| _| _| _| _| _| _| _| _| _| _| _| ______| \ ]],
|
||||
-- [[ / __| _| _| _| _| _| _| _| _| _| _| _| _| _| ___| \ ]],
|
||||
-- [[ / _| _| _| _| ________________________| _| _| _| _| \ ]],
|
||||
-- [[|------"--------------------------------------"-------|]],
|
||||
-- [[`-----------------------------------------------------']],
|
||||
|
||||
-- simpler header
|
||||
--[[
|
||||
╦ ╦ ╦╔╗╔╔═╗╦═╗╦ ╦╦╔╦╗
|
||||
║ ║ ║║║║╠═╣╠╦╝╚╗╔╝║║║║
|
||||
╩═╝╚═╝╝╚╝╩ ╩╩╚═ ╚╝ ╩╩ ╩
|
||||
]] --
|
|
@ -1,10 +0,0 @@
|
|||
return {
|
||||
format_on_save = {
|
||||
enabled = true, -- enable format on save
|
||||
ignore_filetypes = { -- disable format on save for specified filetypes
|
||||
"markdown",
|
||||
"python",
|
||||
"html",
|
||||
},
|
||||
},
|
||||
}
|
|
@ -1,40 +0,0 @@
|
|||
-- Mapping data with "desc" stored directly by vim.keymap.set().
|
||||
--
|
||||
-- Please use this mappings table to set keyboard mapping since this is the
|
||||
-- lower level configuration and more robust one. (which-key will
|
||||
-- automatically pick-up stored data by this setting.)
|
||||
return {
|
||||
-- first key is the mode
|
||||
n = {
|
||||
-- second key is the lefthand side of the map
|
||||
-- mappings seen under group name "Buffer"
|
||||
["<leader>bb"] = { "<cmd>tabnew<cr>", desc = "New tab" },
|
||||
["<leader>bc"] = { "<cmd>BufferLinePickClose<cr>", desc = "Pick to close" },
|
||||
["<leader>bj"] = { "<cmd>BufferLinePick<cr>", desc = "Pick to jump" },
|
||||
["<leader>bt"] = { "<cmd>BufferLineSortByTabs<cr>", desc = "Sort by tabs" },
|
||||
["<leader>bp"] = { "<cmd>:bp<cr>", desc = "Previous Buffer" },
|
||||
-- disable default bindings
|
||||
["<C-Down>"] = false,
|
||||
["<C-Left>"] = false,
|
||||
["<C-Right>"] = false,
|
||||
["<C-Up>"] = false,
|
||||
["<C-q>"] = false,
|
||||
["<C-s>"] = false,
|
||||
["<leader>sb"] = false,
|
||||
["<leader>sc"] = false,
|
||||
["<leader>sh"] = false,
|
||||
["<leader>sk"] = false,
|
||||
["<leader>sm"] = false,
|
||||
["<leader>sn"] = false,
|
||||
["<leader>sr"] = false,
|
||||
["q:"] = "<Nop>",
|
||||
-- navigating wrapped lines
|
||||
j = { "gj", desc = "Navigate down" },
|
||||
k = { "gk", desc = "Navigate down" },
|
||||
},
|
||||
}
|
||||
|
||||
-- map('n', 'j', "v:count ? 'j' : 'gj'", { expr = true, noremap = true })
|
||||
-- map('n', 'k', "v:count ? 'k' : 'gk'", { expr = true, noremap = true })
|
||||
-- map('n', "<C-j>","}",{noremap = true})
|
||||
-- map('n', "<C-k>","{",{noremap = true})
|
|
@ -1,20 +0,0 @@
|
|||
-- from https://code.mehalter.com/projects/68/files
|
||||
return {
|
||||
opt = {
|
||||
conceallevel = 2, -- enable conceal
|
||||
foldenable = false,
|
||||
foldexpr = "nvim_treesitter#foldexpr()", -- set Treesitter based folding
|
||||
foldmethod = "expr",
|
||||
linebreak = true, -- linebreak soft wrap at words
|
||||
list = true, -- show whitespace characters
|
||||
listchars = { tab = "│→", extends = "⟩", precedes = "⟨", trail = "·", nbsp = "␣" },
|
||||
showbreak = "↪ ",
|
||||
spellfile = vim.fn.expand("~/.config/astronvim/lua/user/spell/en.utf-8.add"),
|
||||
timeoutlen = 300,
|
||||
thesaurus = vim.fn.expand("~/.config/astronvim/lua/user/spell/mthesaur.txt"),
|
||||
wrap = true, -- soft wrap lines
|
||||
},
|
||||
g = {
|
||||
matchup_matchparen_deferred = 1,
|
||||
},
|
||||
}
|
|
@ -1,35 +0,0 @@
|
|||
-- load config from local file...
|
||||
-- local p = function(name)
|
||||
-- return string.format("require'config.%s'", name)
|
||||
-- end
|
||||
|
||||
-- d for default :P
|
||||
local d = function(name)
|
||||
return string.format("require'%s'.setup({})", name)
|
||||
end
|
||||
|
||||
return {
|
||||
{ "lambdalisue/suda.vim" }, -- for sudo reading and writing
|
||||
-- theming
|
||||
{
|
||||
"catppuccin/nvim",
|
||||
as = "catppuccin",
|
||||
config = d("zk"),
|
||||
},
|
||||
-- language specific
|
||||
{ "LnL7/vim-nix" },
|
||||
{ "alaviss/nim.nvim" },
|
||||
{
|
||||
"quarto-dev/quarto-vim",
|
||||
requires = {
|
||||
{ "vim-pandoc/vim-pandoc-syntax" },
|
||||
},
|
||||
ft = { "quarto" },
|
||||
},
|
||||
{ "kenkundert/vim-nestedtext" },
|
||||
-- general tools
|
||||
{
|
||||
"mickael-menu/zk-nvim",
|
||||
config = d("zk"),
|
||||
},
|
||||
}
|
|
@ -1,12 +0,0 @@
|
|||
return {
|
||||
ensure_installed = {
|
||||
"cssls",
|
||||
"gopls",
|
||||
"html",
|
||||
"jsonls",
|
||||
-- "pyright",
|
||||
"sumneko_lua",
|
||||
"texlab",
|
||||
"yamlls",
|
||||
},
|
||||
}
|
|
@ -1,10 +0,0 @@
|
|||
return {
|
||||
ensure_installed = {
|
||||
"shellcheck",
|
||||
"stylua",
|
||||
"black",
|
||||
"isort",
|
||||
"shfmt",
|
||||
"shellcheck",
|
||||
},
|
||||
}
|
|
@ -1 +0,0 @@
|
|||
return { window = { border = "none" } }
|
|
@ -1,5 +0,0 @@
|
|||
return function()
|
||||
vim.cmd([[
|
||||
autocmd BufNewFile,BufRead Knitfile set syntax=lua
|
||||
]])
|
||||
end
|
|
@ -1,26 +0,0 @@
|
|||
From ddbb42f330a8d09980c812f5c05b6d8123a767ea Mon Sep 17 00:00:00 2001
|
||||
From: Daylin Morgan <daylinmorgan@gmail.com>
|
||||
Date: Mon, 28 Nov 2022 18:47:52 -0600
|
||||
Subject: [PATCH] remove version check
|
||||
|
||||
---
|
||||
init.lua | 6 +++---
|
||||
1 file changed, 3 insertions(+), 3 deletions(-)
|
||||
|
||||
diff --git a/init.lua b/init.lua
|
||||
index 2bf8f14..649f5f5 100644
|
||||
--- a/init.lua
|
||||
+++ b/init.lua
|
||||
@@ -16,6 +16,6 @@ end
|
||||
|
||||
astronvim.conditional_func(astronvim.user_plugin_opts("polish", nil, false))
|
||||
|
||||
-if vim.fn.has "nvim-0.8" ~= 1 or vim.version().prerelease then
|
||||
- vim.schedule(function() astronvim.notify("Unsupported Neovim Version! Please check the requirements", "error") end)
|
||||
-end
|
||||
+-- if vim.fn.has "nvim-0.8" ~= 1 or vim.version().prerelease then
|
||||
+ -- vim.schedule(function() astronvim.notify("Unsupported Neovim Version! Please check the requirements", "error") end)
|
||||
+-- end
|
||||
--
|
||||
2.38.1
|
||||
|
|
@ -1,28 +0,0 @@
|
|||
## where to store your database, default is your system data directory
|
||||
## mac: ~/Library/Application Support/com.elliehuxtable.atuin/history.db
|
||||
## linux: ~/.local/share/atuin/history.db
|
||||
# db_path = "~/.history.db"
|
||||
|
||||
## where to store your encryption key, default is your system data directory
|
||||
# key_path = "~/.key"
|
||||
|
||||
## where to store your auth session token, default is your system data directory
|
||||
# session_path = "~/.key"
|
||||
|
||||
## date format used, either "us" or "uk"
|
||||
# dialect = "uk"
|
||||
|
||||
## enable or disable automatic sync
|
||||
# auto_sync = true
|
||||
|
||||
## how often to sync history. note that this is only triggered when a command
|
||||
## is ran, so sync intervals may well be longer
|
||||
## set it to 0 to sync after every command
|
||||
# sync_frequency = "5m"
|
||||
|
||||
## address of the sync server
|
||||
# sync_address = "https://api.atuin.sh"
|
||||
|
||||
## which search mode to use
|
||||
## possible values: prefix, fulltext, fuzzy
|
||||
search_mode = "fuzzy"
|
|
@ -1,5 +0,0 @@
|
|||
require('settings')
|
||||
require('plugins')
|
||||
require('keybindings')
|
||||
require('autocommands')
|
||||
require('lsp')
|
|
@ -1,29 +0,0 @@
|
|||
|
||||
local _, util = pcall(require, "zk.util")
|
||||
|
||||
-- Add the key mappings only for Markdown files in a zk notebook.
|
||||
if util.notebook_root(vim.fn.expand('%:p')) ~= nil then
|
||||
local function map(...) vim.api.nvim_buf_set_keymap(0, ...) end
|
||||
local opts = { noremap=true, silent=false }
|
||||
-- Open the link under the caret.
|
||||
map("n", "<CR>", "<Cmd>lua vim.lsp.buf.definition()<CR>", opts)
|
||||
-- Create a new note after asking for its title.
|
||||
-- This overrides the global `<leader>zn` mapping to create the note in the same directory as the current buffer.
|
||||
map("n", "<leader>zn", "<Cmd>ZkNew { dir = vim.fn.expand('%:p:h'), title = vim.fn.input('Title: ') }<CR>", opts)
|
||||
-- Create a new note in the same directory as the current buffer, using the current selection for title.
|
||||
map("v", "<leader>znt", ":'<,'>ZkNewFromTitleSelection { dir = vim.fn.expand('%:p:h') }<CR>", opts)
|
||||
-- Create a new note in the same directory as the current buffer, using the current selection for note content and asking for its title.
|
||||
map("v", "<leader>znc", ":'<,'>ZkNewFromContentSelection { dir = vim.fn.expand('%:p:h'), title = vim.fn.input('Title: ') }<CR>", opts)
|
||||
|
||||
-- Open notes linking to the current buffer.
|
||||
map("n", "<leader>zb", "<Cmd>ZkBacklinks<CR>", opts)
|
||||
-- Alternative for backlinks using pure LSP and showing the source context.
|
||||
--map('n', '<leader>zb', '<Cmd>lua vim.lsp.buf.references()<CR>', opts)
|
||||
-- Open notes linked by the current buffer.
|
||||
map("n", "<leader>zl", "<Cmd>ZkLinks<CR>", opts)
|
||||
|
||||
-- Preview a linked note.
|
||||
map("n", "K", "<Cmd>lua vim.lsp.buf.hover()<CR>", opts)
|
||||
-- Open the code actions for a visual selection.
|
||||
map("v", "<leader>za", ":'<,'>lua vim.lsp.buf.range_code_action()<CR>", opts)
|
||||
end
|
|
@ -1,8 +0,0 @@
|
|||
-- Is this necessary?
|
||||
vim.api.nvim_create_autocmd("FileType", {
|
||||
pattern = "zsh",
|
||||
callback = function()
|
||||
-- let treesitter use bash highlight for zsh files as well
|
||||
require("nvim-treesitter.highlight").attach(0, "bash")
|
||||
end,
|
||||
})
|
|
@ -1,78 +0,0 @@
|
|||
-- local _, zk = pcall(require, "zk")
|
||||
-- local _, commands = pcall(require, "zk.commands")
|
||||
|
||||
-- TODO: figure out what's wrong with these ....
|
||||
-- local function dump(o)
|
||||
-- if type(o) == 'table' then
|
||||
-- local s = '{ '
|
||||
-- for k, v in pairs(o) do
|
||||
-- if type(k) ~= 'number' then k = '"' .. k .. '"' end
|
||||
-- s = s .. '[' .. k .. '] = ' .. dump(v) .. ','
|
||||
-- end
|
||||
-- return s .. '} '
|
||||
-- else
|
||||
-- return tostring(o)
|
||||
-- end
|
||||
-- end
|
||||
|
||||
-- commands.add("ZkLinkTo", function(options)
|
||||
-- zk.pick_notes(options, { title = "ZkLinkTo" }, function(notes)
|
||||
-- local note = notes[1]
|
||||
-- local title = ''
|
||||
-- print(dump(note))
|
||||
-- if note.title then
|
||||
-- title = note.title
|
||||
-- else
|
||||
-- title = "Untitled"
|
||||
-- end
|
||||
-- local link = "[" .. title .. "](" .. note.absPath .. ")"
|
||||
-- print(link)
|
||||
-- -- notes = { notes }
|
||||
-- for i, note in ipairs(notes) do
|
||||
-- print(i)
|
||||
-- print(note.title)
|
||||
-- if note.title then
|
||||
-- print("[" .. note.title .. "](" .. note.absPath .. ")")
|
||||
-- link = "[" .. note.title .. "](" .. note.absPath .. ")"
|
||||
-- else
|
||||
-- print('no title brah')
|
||||
-- link = 'other lin'
|
||||
-- print(link)
|
||||
-- end
|
||||
-- print(link)
|
||||
-- print(note.absPath)
|
||||
-- -- -- vim.cmd("e " .. note.absPath)
|
||||
-- end
|
||||
-- end)
|
||||
-- end)
|
||||
|
||||
-- commands.add("ZkListLin", function(options)
|
||||
-- zk.pick_notes(options, { title = "ZkLinkTo" }, function(notes)
|
||||
-- local note = notes[1]
|
||||
-- local title = ''
|
||||
-- print(dump(note))
|
||||
-- if note.title then
|
||||
-- title = note.title
|
||||
-- else
|
||||
-- title = "Untitled"
|
||||
-- end
|
||||
-- local link = "[" .. title .. "](" .. note.absPath .. ")"
|
||||
-- print(link)
|
||||
-- -- notes = { notes }
|
||||
-- for i, note in ipairs(notes) do
|
||||
-- print(i)
|
||||
-- print(note.title)
|
||||
-- if note.title then
|
||||
-- print("[" .. note.title .. "](" .. note.absPath .. ")")
|
||||
-- link = "[" .. note.title .. "](" .. note.absPath .. ")"
|
||||
-- else
|
||||
-- print('no title brah')
|
||||
-- link = 'other lin'
|
||||
-- print(link)
|
||||
-- end
|
||||
-- print(link)
|
||||
-- print(note.absPath)
|
||||
-- -- -- vim.cmd("e " .. note.absPath)
|
||||
-- end
|
||||
-- end)
|
||||
-- end)
|
|
@ -1,15 +0,0 @@
|
|||
require("transparent").setup({
|
||||
enable = true, -- boolean: enable transparent
|
||||
extra_groups = { -- table/string: additional groups that should be cleared
|
||||
-- In particular, when you set it to 'all', that means all available groups
|
||||
|
||||
-- example of akinsho/nvim-bufferline.lua
|
||||
"BufferLineTabClose",
|
||||
"BufferlineBufferSelected",
|
||||
"BufferLineFill",
|
||||
"BufferLineBackground",
|
||||
"BufferLineSeparator",
|
||||
"BufferLineIndicatorSelected",
|
||||
},
|
||||
exclude = {}, -- table: groups you don't want to clear
|
||||
})
|
|
@ -1,20 +0,0 @@
|
|||
require("zk").setup({
|
||||
-- can be "telescope", "fzf" or "select" (`vim.ui.select`)
|
||||
-- it's recommended to use "telescope" or "fzf"
|
||||
picker = "telescope",
|
||||
lsp = {
|
||||
-- `config` is passed to `vim.lsp.start_client(config)`
|
||||
config = {
|
||||
cmd = { "zk", "lsp" },
|
||||
name = "zk",
|
||||
-- on_attach = ...
|
||||
-- etc, see `:h vim.lsp.start_client()`
|
||||
},
|
||||
|
||||
-- automatically attach buffers in a zk notebook that match the given filetypes
|
||||
auto_attach = {
|
||||
enabled = true,
|
||||
filetypes = { "markdown" },
|
||||
},
|
||||
},
|
||||
})
|
|
@ -1,64 +0,0 @@
|
|||
-- Map a key with optional options
|
||||
local function map(mode, keys, action, options)
|
||||
if options == nil then
|
||||
options = { noremap = true }
|
||||
end
|
||||
vim.api.nvim_set_keymap(mode, keys, action, options)
|
||||
end
|
||||
|
||||
vim.g.mapleader = " "
|
||||
|
||||
map('i', 'jk', '<Esc>', { noremap = true })
|
||||
map('v', 'jk', '<Esc>', { noremap = true })
|
||||
map('n', "H", "^", { noremap = true })
|
||||
map('n', "L", "$", { noremap = true })
|
||||
map('n', 'j', "v:count ? 'j' : 'gj'", { expr = true, noremap = true })
|
||||
map('n', 'k', "v:count ? 'k' : 'gk'", { expr = true, noremap = true })
|
||||
map('n', "<C-j>","}",{noremap = true})
|
||||
map('n', "<C-k>","{",{noremap = true})
|
||||
|
||||
-- zettelkasten keybindings
|
||||
-- Create a new note after asking for its title.
|
||||
-- map("n", "<leader>zn", "<Cmd>ZkNew { title = vim.fn.input('Title: ') }<CR>")
|
||||
|
||||
-- -- Open notes.
|
||||
-- map("n", "<leader>zo", "<Cmd>ZkNotes { sort = { 'modified' } }<CR>")
|
||||
-- -- Open notes associated with the selected tags.
|
||||
-- map("n", "<leader>zt", "<Cmd>ZkTags<CR>")
|
||||
|
||||
-- -- Search for the notes matching a given query.
|
||||
-- map("n", "<leader>zf", "<Cmd>ZkNotes { sort = { 'modified' }, match = vim.fn.input('Search: ') }<CR>")
|
||||
-- -- Search for the notes matching the current visual selection.
|
||||
|
||||
map("v", "<leader>zf", ":'<,'>ZkMatch<CR>")
|
||||
|
||||
local mappings = lvim.builtin.which_key.mappings
|
||||
|
||||
mappings["z"] = {
|
||||
name = "zk",
|
||||
n = { "<Cmd>ZkNew { title = vim.fn.input('Title: ') }<CR>", "New" },
|
||||
o = { "<Cmd>ZkNotes { sort = { 'modified' } }<CR>", "Open" },
|
||||
t = { "<Cmd>ZkTags<CR>", "Tags" },
|
||||
f = { "<Cmd>ZkNotes { sort = { 'modified' }, match = vim.fn.input('Search: ') }<CR>", "Fuzzy Search" },
|
||||
}
|
||||
mappings["s"]["p"] = { "<cmd>Telescope projects<CR>", "Recent Projects" }
|
||||
mappings["s"]["w"] = { "<cmd>Telescope live_grep<CR>", "Find Word" }
|
||||
|
||||
|
||||
-- Change Telescope navigation to use j and k for navigation and n and p for history in both input and normal mode.
|
||||
-- we use protected-mode (pcall) just in case the plugin wasn't loaded yet.
|
||||
local _, actions = pcall(require, "telescope.actions")
|
||||
lvim.builtin.telescope.defaults.mappings = {
|
||||
-- for input mode
|
||||
i = {
|
||||
["<C-j>"] = actions.move_selection_next,
|
||||
["<C-k>"] = actions.move_selection_previous,
|
||||
["<C-n>"] = actions.cycle_history_next,
|
||||
["<C-p>"] = actions.cycle_history_prev,
|
||||
},
|
||||
-- for normal mode
|
||||
n = {
|
||||
["<C-j>"] = actions.move_selection_next,
|
||||
["<C-k>"] = actions.move_selection_previous,
|
||||
},
|
||||
}
|
|
@ -1 +0,0 @@
|
|||
require'lspconfig'.taplo.setup{}
|
|
@ -1,95 +0,0 @@
|
|||
local p = function(name) return string.format("require'config.%s'", name) end
|
||||
|
||||
-- extra plugins
|
||||
lvim.plugins = {
|
||||
{ 'chrisbra/Colorizer' },
|
||||
{
|
||||
'catppuccin/nvim',
|
||||
as = 'catppuccin'
|
||||
},
|
||||
-- { 'Djancyp/better-comments.nvim',
|
||||
-- config = function()
|
||||
-- require('better-comment').Setup()
|
||||
-- end
|
||||
-- },
|
||||
{ 'NoahTheDuke/vim-just' },
|
||||
{ 'ggandor/lightspeed.nvim' },
|
||||
{ 'elkowar/yuck.vim' },
|
||||
{
|
||||
'mickael-menu/zk-nvim',
|
||||
config = p "zk";
|
||||
},
|
||||
{
|
||||
"quarto-dev/quarto-vim",
|
||||
requires = {
|
||||
{ "vim-pandoc/vim-pandoc-syntax" },
|
||||
},
|
||||
ft = { "quarto" },
|
||||
},
|
||||
{ 'xiyaowong/nvim-transparent',
|
||||
config = p 'nvim-transparent';
|
||||
},
|
||||
}
|
||||
|
||||
-- default plugins settings
|
||||
-- lvim.builtin.nvimtree.setup.git.ignore = false
|
||||
|
||||
lvim.builtin.notify.active = true
|
||||
lvim.builtin.terminal.active = true
|
||||
lvim.builtin.telescope.pickers.find_files.find_command = {
|
||||
"rg",
|
||||
"--hidden",
|
||||
"--files",
|
||||
"--glob=!.git/",
|
||||
}
|
||||
|
||||
local function pick_color()
|
||||
local colors = { "String", "Identifier", "Keyword", "Number", "Constant" }
|
||||
return colors[math.random(#colors)]
|
||||
end
|
||||
|
||||
local function myfooter(lvim_version)
|
||||
-- local plugins = #vim.tbl_keys(packer_plugins) needs to be in config of packer table...
|
||||
local v = vim.version()
|
||||
local datetime = os.date " %Y.%m.%d %H:%M:%S"
|
||||
return string.format(" %s v%s.%s.%s %s", lvim_version, v.major, v.minor, v.patch, datetime)
|
||||
end
|
||||
|
||||
local lvim_version = require("lvim.utils.git").get_lvim_version()
|
||||
|
||||
local hl = pick_color()
|
||||
|
||||
lvim.builtin.alpha.dashboard.section.header.opts.hl = hl
|
||||
lvim.builtin.alpha.dashboard.section.footer.opts.hl = hl
|
||||
lvim.builtin.alpha.dashboard.section.footer.val = myfooter(lvim_version)
|
||||
|
||||
|
||||
lvim.builtin.alpha.dashboard.section.header.val = {
|
||||
[[ _______________________________________ ]],
|
||||
[[ |,---"-----------------------------"---,| ]],
|
||||
[[ ||___ 16 bit.................... || ]],
|
||||
[[ ||====\ :HHHHHHHHHHHHHHHHHHHHHHHHHHH || ]],
|
||||
[[ ||=====):H c> lvim H || ]],
|
||||
[[ ||====/ :H ╦ ╦ ╦╔╗╔╔═╗╦═╗╦ ╦╦╔╦╗ H || ]],
|
||||
[[ || :H ║ ║ ║║║║╠═╣╠╦╝╚╗╔╝║║║║ H || ]],
|
||||
[[ ||PORTFO:H ╩═╝╚═╝╝╚╝╩ ╩╩╚═ ╚╝ ╩╩ ╩ H || ]],
|
||||
[[ || :HHHHHHHHHHHHHHHHHHHHHHHHHHH || ]],
|
||||
[[ ||_____,_________________________,_____|| ]],
|
||||
[[ |)_____)-----.| /I\ATARI |.------(_____(| ]],
|
||||
[[ //"""""""|_____|=----------=|______|"""""""\ ]],
|
||||
[[ // _| _| _| _| _| _| _| _| _| _| _| _| _| _| \ ]],
|
||||
[[ // ___| _| _| _| _| _| _| _| _| _| _| _| | | \ ]],
|
||||
[[ |/ ___| _| _| _| _| _| _| _| _| _| _| _| ______| \ ]],
|
||||
[[ / __| _| _| _| _| _| _| _| _| _| _| _| _| _| ___| \ ]],
|
||||
[[ / _| _| _| _| ________________________| _| _| _| _| \ ]],
|
||||
[[|------"--------------------------------------"-------|]],
|
||||
[[`-----------------------------------------------------']],
|
||||
}
|
||||
|
||||
|
||||
-- simpler header
|
||||
--[[
|
||||
╦ ╦ ╦╔╗╔╔═╗╦═╗╦ ╦╦╔╦╗
|
||||
║ ║ ║║║║╠═╣╠╦╝╚╗╔╝║║║║
|
||||
╩═╝╚═╝╝╚╝╩ ╩╩╚═ ╚╝ ╩╩ ╩
|
||||
]] --
|
|
@ -1,31 +0,0 @@
|
|||
-- settings
|
||||
local opt = vim.opt
|
||||
opt.timeoutlen = 200
|
||||
opt.cmdheight = 0 -- broken??
|
||||
opt.listchars:append({ tab = "⍿·", trail = "×" })
|
||||
opt.list = true
|
||||
opt.number = true
|
||||
opt.relativenumber = true
|
||||
|
||||
-- lvim specific settings
|
||||
-- general
|
||||
lvim.log.level = "warn"
|
||||
lvim.format_on_save = false
|
||||
lvim.colorscheme = "catppuccin"
|
||||
|
||||
-- if you don't want all the parsers change this to a table of the ones you want
|
||||
lvim.builtin.treesitter.ensure_installed = {
|
||||
"bash",
|
||||
"javascript",
|
||||
"json",
|
||||
"lua",
|
||||
"python",
|
||||
"typescript",
|
||||
"tsx",
|
||||
"css",
|
||||
"rust",
|
||||
"yaml",
|
||||
"toml"
|
||||
}
|
||||
|
||||
lvim.builtin.treesitter.highlight.enabled = true
|
|
@ -1,47 +0,0 @@
|
|||
# `sheldon` configuration file
|
||||
# ----------------------------
|
||||
#
|
||||
# You can modify this file directly or you can use one of the following
|
||||
# `sheldon` commands which are provided to assist in editing the config file:
|
||||
#
|
||||
# - `sheldon add` to add a new plugin to the config file
|
||||
# - `sheldon edit` to open up the config file in the default editor
|
||||
# - `sheldon remove` to remove a plugin from the config file
|
||||
#
|
||||
# See the documentation for more https://github.com/rossmacarthur/sheldon#readme
|
||||
|
||||
shell = "zsh"
|
||||
|
||||
|
||||
[plugins]
|
||||
|
||||
# oh-my-zsh plugins
|
||||
[plugins.ohmyzsh-plugins]
|
||||
github = 'ohmyzsh/ohmyzsh'
|
||||
dir = 'plugins'
|
||||
use = ['{dotenv,extract}/*.plugin.zsh']
|
||||
|
||||
[plugins.ohmyzsh-lib]
|
||||
github = 'ohmyzsh/ohmyzsh'
|
||||
dir = "lib"
|
||||
use = ['{completion,clipboard}.zsh']
|
||||
|
||||
[plugins.base16]
|
||||
github = "chriskempson/base16-shell"
|
||||
|
||||
[plugins.zsh-defer]
|
||||
github = "romkatv/zsh-defer"
|
||||
|
||||
[plugins.zcolors]
|
||||
github = "marlonrichert/zcolors"
|
||||
|
||||
[plugins.zsh-syntax-highlighting]
|
||||
github = "zsh-users/zsh-syntax-highlighting"
|
||||
apply = ["defer"]
|
||||
|
||||
[plugins.fzf-tab]
|
||||
github = "Aloxaf/fzf-tab"
|
||||
apply = ["defer"]
|
||||
|
||||
[templates]
|
||||
defer = "{% for file in files %}zsh-defer source \"{{ file }}\"\n{% endfor %}"
|
|
@ -1,607 +0,0 @@
|
|||
---
|
||||
# Configuration for zellij.
|
||||
|
||||
# In order to troubleshoot your configuration try using the following command:
|
||||
# `zellij setup --check`
|
||||
# It should show current config locations and features that are enabled.
|
||||
|
||||
keybinds:
|
||||
unbind: true
|
||||
normal:
|
||||
- action: [SwitchToMode: Locked,]
|
||||
key: [Ctrl: 'g',]
|
||||
- action: [SwitchToMode: Pane,]
|
||||
key: [Ctrl: 'p',]
|
||||
- action: [SwitchToMode: Resize,]
|
||||
key: [Ctrl: 'n',]
|
||||
- action: [SwitchToMode: Tab,]
|
||||
key: [Ctrl: 't',]
|
||||
- action: [SwitchToMode: Scroll,]
|
||||
key: [Ctrl: 's',]
|
||||
- action: [SwitchToMode: Session,]
|
||||
key: [Ctrl: 'o',]
|
||||
- action: [SwitchToMode: Move,]
|
||||
key: [Ctrl: 'h',]
|
||||
- action: [SwitchToMode: Tmux,]
|
||||
key: [Ctrl: 'b',]
|
||||
- action: [Quit,]
|
||||
key: [Ctrl: 'q',]
|
||||
- action: [NewPane: ]
|
||||
key: [ Alt: 'n',]
|
||||
- action: [MoveFocusOrTab: Left,]
|
||||
key: [ Alt: 'h', Alt: Left]
|
||||
- action: [MoveFocusOrTab: Right,]
|
||||
key: [ Alt: 'l', Alt: Right ]
|
||||
- action: [MoveFocus: Down,]
|
||||
key: [ Alt: 'j', Alt: Down]
|
||||
- action: [MoveFocus: Up,]
|
||||
key: [ Alt: 'k', Alt: Up, ]
|
||||
- action: [Resize: Increase,]
|
||||
key: [ Alt: '=']
|
||||
- action: [Resize: Increase,]
|
||||
key: [ Alt: '+']
|
||||
- action: [Resize: Decrease,]
|
||||
key: [ Alt: '-']
|
||||
# uncomment this and adjust key if using copy_on_select=false
|
||||
# - action: [Copy: ]
|
||||
# key: [ Alt: 'c']
|
||||
locked:
|
||||
- action: [SwitchToMode: Normal,]
|
||||
key: [Ctrl: 'g',]
|
||||
resize:
|
||||
- action: [SwitchToMode: Locked,]
|
||||
key: [Ctrl: 'g']
|
||||
- action: [SwitchToMode: Pane,]
|
||||
key: [Ctrl: 'p',]
|
||||
- action: [SwitchToMode: Tab,]
|
||||
key: [Ctrl: 't',]
|
||||
- action: [SwitchToMode: Normal,]
|
||||
key: [Ctrl: 'n', Char: "\n", Char: ' ', Esc]
|
||||
- action: [SwitchToMode: Scroll,]
|
||||
key: [Ctrl: 's']
|
||||
- action: [SwitchToMode: Session,]
|
||||
key: [Ctrl: 'o',]
|
||||
- action: [SwitchToMode: Move,]
|
||||
key: [Ctrl: 'h',]
|
||||
- action: [SwitchToMode: Tmux,]
|
||||
key: [Ctrl: 'b',]
|
||||
- action: [Quit]
|
||||
key: [Ctrl: 'q']
|
||||
- action: [Resize: Left,]
|
||||
key: [Char: 'h', Left,]
|
||||
- action: [Resize: Down,]
|
||||
key: [Char: 'j', Down,]
|
||||
- action: [Resize: Up,]
|
||||
key: [Char: 'k', Up, ]
|
||||
- action: [Resize: Right,]
|
||||
key: [Char: 'l', Right,]
|
||||
- action: [Resize: Increase,]
|
||||
key: [Char: '=']
|
||||
- action: [Resize: Increase,]
|
||||
key: [ Char: '+']
|
||||
- action: [Resize: Decrease,]
|
||||
key: [Char: '-']
|
||||
- action: [NewPane: ,]
|
||||
key: [ Alt: 'n',]
|
||||
- action: [MoveFocusOrTab: Left,]
|
||||
key: [ Alt: 'h', Alt: Left]
|
||||
- action: [MoveFocusOrTab: Right,]
|
||||
key: [ Alt: 'l', Alt: Right]
|
||||
- action: [MoveFocus: Down,]
|
||||
key: [ Alt: 'j', Alt: Down]
|
||||
- action: [MoveFocus: Up,]
|
||||
key: [ Alt: 'k', Alt: Up]
|
||||
- action: [Resize: Increase,]
|
||||
key: [ Alt: '=']
|
||||
- action: [Resize: Increase,]
|
||||
key: [ Alt: '+']
|
||||
- action: [Resize: Decrease,]
|
||||
key: [ Alt: '-']
|
||||
pane:
|
||||
- action: [SwitchToMode: Locked,]
|
||||
key: [Ctrl: 'g']
|
||||
- action: [SwitchToMode: Resize,]
|
||||
key: [Ctrl: 'n',]
|
||||
- action: [SwitchToMode: Tab,]
|
||||
key: [Ctrl: 't',]
|
||||
- action: [SwitchToMode: Normal,]
|
||||
key: [Ctrl: 'p', Char: "\n", Char: ' ', Esc]
|
||||
- action: [SwitchToMode: Scroll,]
|
||||
key: [Ctrl: 's']
|
||||
- action: [SwitchToMode: Session,]
|
||||
key: [Ctrl: 'o',]
|
||||
- action: [SwitchToMode: Move,]
|
||||
key: [Ctrl: 'h',]
|
||||
- action: [SwitchToMode: Tmux,]
|
||||
key: [Ctrl: 'b',]
|
||||
- action: [Quit,]
|
||||
key: [Ctrl: 'q',]
|
||||
- action: [MoveFocus: Left,]
|
||||
key: [ Char: 'h', Left,]
|
||||
- action: [MoveFocus: Right,]
|
||||
key: [ Char: 'l', Right,]
|
||||
- action: [MoveFocus: Down,]
|
||||
key: [ Char: 'j', Down,]
|
||||
- action: [MoveFocus: Up,]
|
||||
key: [ Char: 'k', Up,]
|
||||
- action: [SwitchFocus,]
|
||||
key: [Char: 'p']
|
||||
- action: [NewPane: , SwitchToMode: Normal,]
|
||||
key: [Char: 'n',]
|
||||
- action: [NewPane: Down, SwitchToMode: Normal,]
|
||||
key: [Char: 'd',]
|
||||
- action: [NewPane: Right, SwitchToMode: Normal,]
|
||||
key: [Char: 'r',]
|
||||
- action: [CloseFocus, SwitchToMode: Normal,]
|
||||
key: [Char: 'x',]
|
||||
- action: [ToggleFocusFullscreen, SwitchToMode: Normal,]
|
||||
key: [Char: 'f',]
|
||||
- action: [TogglePaneFrames, SwitchToMode: Normal,]
|
||||
key: [Char: 'z',]
|
||||
- action: [ToggleFloatingPanes, SwitchToMode: Normal,]
|
||||
key: [Char: 'w']
|
||||
- action: [TogglePaneEmbedOrFloating, SwitchToMode: Normal,]
|
||||
key: [Char: 'e']
|
||||
- action: [NewPane: ,]
|
||||
key: [ Alt: 'n',]
|
||||
- action: [MoveFocusOrTab: Left,]
|
||||
key: [ Alt: 'h', Alt: Left] # The Alt: Left etc. variants are temporary hacks and will be removed in the future - please do not rely on them!
|
||||
- action: [MoveFocusOrTab: Right,]
|
||||
key: [ Alt: 'l', Alt: Right]
|
||||
- action: [MoveFocus: Down,]
|
||||
key: [ Alt: 'j', Alt: Down]
|
||||
- action: [MoveFocus: Up,]
|
||||
key: [ Alt: 'k', Alt: Up]
|
||||
- action: [Resize: Increase,]
|
||||
key: [ Alt: '=']
|
||||
- action: [Resize: Increase,]
|
||||
key: [ Alt: '+']
|
||||
- action: [Resize: Decrease,]
|
||||
key: [ Alt: '-']
|
||||
- action: [SwitchToMode: RenamePane, PaneNameInput: [0],]
|
||||
key: [Char: 'c']
|
||||
move:
|
||||
- action: [SwitchToMode: Locked,]
|
||||
key: [Ctrl: 'g']
|
||||
- action: [SwitchToMode: Pane,]
|
||||
key: [Ctrl: 'p',]
|
||||
- action: [SwitchToMode: Tab,]
|
||||
key: [Ctrl: 't',]
|
||||
- action: [SwitchToMode: Resize,]
|
||||
key: [Ctrl: 'n',]
|
||||
- action: [SwitchToMode: Normal,]
|
||||
key: [Ctrl: 'h', Char: "\n", Char: ' ', Esc]
|
||||
- action: [SwitchToMode: Scroll,]
|
||||
key: [Ctrl: 's']
|
||||
- action: [SwitchToMode: Session,]
|
||||
key: [Ctrl: 'o',]
|
||||
- action: [Quit]
|
||||
key: [Ctrl: 'q']
|
||||
- action: [MovePane: ,]
|
||||
key: [Char: 'n', Char: "\t",]
|
||||
- action: [MovePane: Left,]
|
||||
key: [Char: 'h', Left,]
|
||||
- action: [MovePane: Down,]
|
||||
key: [Char: 'j', Down,]
|
||||
- action: [MovePane: Up,]
|
||||
key: [Char: 'k', Up, ]
|
||||
- action: [MovePane: Right,]
|
||||
key: [Char: 'l', Right,]
|
||||
- action: [NewPane: ,]
|
||||
key: [ Alt: 'n',]
|
||||
- action: [MoveFocusOrTab: Left,]
|
||||
key: [ Alt: 'h', Alt: Left] # The Alt: Left etc. variants are temporary hacks and will be removed in the future - please do not rely on them!
|
||||
- action: [MoveFocusOrTab: Right,]
|
||||
key: [ Alt: 'l', Alt: Right]
|
||||
- action: [MoveFocus: Down,]
|
||||
key: [ Alt: 'j', Alt: Down]
|
||||
- action: [MoveFocus: Up,]
|
||||
key: [ Alt: 'k', Alt: Up]
|
||||
- action: [Resize: Increase,]
|
||||
key: [ Alt: '=']
|
||||
- action: [Resize: Increase,]
|
||||
key: [ Alt: '+']
|
||||
- action: [Resize: Decrease,]
|
||||
key: [ Alt: '-']
|
||||
tab:
|
||||
- action: [SwitchToMode: Locked,]
|
||||
key: [Ctrl: 'g']
|
||||
- action: [SwitchToMode: Pane,]
|
||||
key: [Ctrl: 'p',]
|
||||
- action: [SwitchToMode: Resize,]
|
||||
key: [Ctrl: 'n',]
|
||||
- action: [SwitchToMode: Normal,]
|
||||
key: [Ctrl: 't', Char: "\n", Char: ' ', Esc]
|
||||
- action: [SwitchToMode: Scroll,]
|
||||
key: [Ctrl: 's']
|
||||
- action: [SwitchToMode: Move,]
|
||||
key: [Ctrl: 'h',]
|
||||
- action: [SwitchToMode: Tmux,]
|
||||
key: [Ctrl: 'b',]
|
||||
- action: [SwitchToMode: Session,]
|
||||
key: [Ctrl: 'o',]
|
||||
- action: [SwitchToMode: RenameTab, TabNameInput: [0],]
|
||||
key: [Char: 'r']
|
||||
- action: [Quit,]
|
||||
key: [Ctrl: 'q',]
|
||||
- action: [GoToPreviousTab,]
|
||||
key: [ Char: 'h', Left, Up, Char: 'k',]
|
||||
- action: [GoToNextTab,]
|
||||
key: [ Char: 'l', Right,Down, Char: 'j']
|
||||
- action: [NewTab: , SwitchToMode: Normal,]
|
||||
key: [ Char: 'n',]
|
||||
- action: [CloseTab, SwitchToMode: Normal,]
|
||||
key: [ Char: 'x',]
|
||||
- action: [ToggleActiveSyncTab, SwitchToMode: Normal,]
|
||||
key: [Char: 's']
|
||||
- action: [GoToTab: 1, SwitchToMode: Normal,]
|
||||
key: [ Char: '1',]
|
||||
- action: [GoToTab: 2, SwitchToMode: Normal,]
|
||||
key: [ Char: '2',]
|
||||
- action: [GoToTab: 3, SwitchToMode: Normal,]
|
||||
key: [ Char: '3',]
|
||||
- action: [GoToTab: 4, SwitchToMode: Normal,]
|
||||
key: [ Char: '4',]
|
||||
- action: [GoToTab: 5, SwitchToMode: Normal,]
|
||||
key: [ Char: '5',]
|
||||
- action: [GoToTab: 6, SwitchToMode: Normal,]
|
||||
key: [ Char: '6',]
|
||||
- action: [GoToTab: 7, SwitchToMode: Normal,]
|
||||
key: [ Char: '7',]
|
||||
- action: [GoToTab: 8, SwitchToMode: Normal,]
|
||||
key: [ Char: '8',]
|
||||
- action: [GoToTab: 9, SwitchToMode: Normal,]
|
||||
key: [ Char: '9',]
|
||||
- action: [ToggleTab]
|
||||
key: [ Char: "\t" ]
|
||||
- action: [NewPane: ,]
|
||||
key: [ Alt: 'n',]
|
||||
- action: [MoveFocusOrTab: Left,]
|
||||
key: [ Alt: 'h', Alt: Left] # The Alt: Left etc. variants are temporary hacks and will be removed in the future - please do not rely on them!
|
||||
- action: [MoveFocusOrTab: Right,]
|
||||
key: [ Alt: 'l', Alt: Right]
|
||||
- action: [MoveFocus: Down,]
|
||||
key: [ Alt: 'j', Alt: Down]
|
||||
- action: [MoveFocus: Up,]
|
||||
key: [ Alt: 'k', Alt: Up]
|
||||
- action: [Resize: Increase,]
|
||||
key: [ Alt: '=']
|
||||
- action: [Resize: Increase,]
|
||||
key: [ Alt: '+']
|
||||
- action: [Resize: Decrease,]
|
||||
key: [ Alt: '-']
|
||||
scroll:
|
||||
- action: [EditScrollback, SwitchToMode: Normal]
|
||||
key: [Char: 'e']
|
||||
- action: [SwitchToMode: Normal,]
|
||||
key: [Ctrl: 's', Char: ' ', Char: "\n", Esc]
|
||||
- action: [SwitchToMode: Tab,]
|
||||
key: [Ctrl: 't',]
|
||||
- action: [SwitchToMode: Locked,]
|
||||
key: [Ctrl: 'g',]
|
||||
- action: [SwitchToMode: Pane,]
|
||||
key: [Ctrl: 'p',]
|
||||
- action: [SwitchToMode: Move,]
|
||||
key: [Ctrl: 'h',]
|
||||
- action: [SwitchToMode: Tmux,]
|
||||
key: [Ctrl: 'b',]
|
||||
- action: [SwitchToMode: Session,]
|
||||
key: [Ctrl: 'o',]
|
||||
- action: [SwitchToMode: Resize,]
|
||||
key: [Ctrl: 'n',]
|
||||
- action: [ScrollToBottom, SwitchToMode: Normal,]
|
||||
key: [Ctrl: 'c',]
|
||||
- action: [Quit,]
|
||||
key: [Ctrl: 'q',]
|
||||
- action: [ScrollDown,]
|
||||
key: [Char: 'j', Down,]
|
||||
- action: [ScrollUp,]
|
||||
key: [Char: 'k', Up,]
|
||||
- action: [PageScrollDown,]
|
||||
key: [Ctrl: 'f', PageDown, Right, Char: 'l',]
|
||||
- action: [PageScrollUp,]
|
||||
key: [Ctrl: 'b', PageUp, Left, Char: 'h',]
|
||||
- action: [HalfPageScrollDown,]
|
||||
key: [Char: 'd',]
|
||||
- action: [HalfPageScrollUp,]
|
||||
key: [Char: 'u',]
|
||||
- action: [NewPane: ,]
|
||||
key: [ Alt: 'n',]
|
||||
- action: [MoveFocusOrTab: Left,]
|
||||
key: [ Alt: 'h', Alt: Left] # The Alt: Left etc. variants are temporary hacks and will be removed in the future - please do not rely on them!
|
||||
- action: [MoveFocusOrTab: Right,]
|
||||
key: [ Alt: 'l', Alt: Right]
|
||||
- action: [MoveFocus: Down,]
|
||||
key: [ Alt: 'j', Alt: Down]
|
||||
- action: [MoveFocus: Up,]
|
||||
key: [ Alt: 'k', Alt: Up]
|
||||
- action: [Resize: Increase,]
|
||||
key: [ Alt: '=']
|
||||
- action: [Resize: Increase,]
|
||||
key: [ Alt: '+']
|
||||
- action: [Resize: Decrease,]
|
||||
key: [ Alt: '-']
|
||||
# uncomment this and adjust key if using copy_on_select=false
|
||||
# - action: [Copy: ]
|
||||
# key: [ Alt: 'c']
|
||||
renametab:
|
||||
- action: [SwitchToMode: Normal,]
|
||||
key: [Char: "\n", Ctrl: 'c', Esc]
|
||||
- action: [TabNameInput: [27] , SwitchToMode: Tab,]
|
||||
key: [Esc,]
|
||||
- action: [NewPane: ,]
|
||||
key: [ Alt: 'n',]
|
||||
- action: [MoveFocusOrTab: Left,]
|
||||
key: [ Alt: 'h', Alt: Left]
|
||||
- action: [MoveFocusOrTab: Right,]
|
||||
key: [ Alt: 'l', Alt: Right]
|
||||
- action: [MoveFocus: Down,]
|
||||
key: [ Alt: 'j', Alt: Down]
|
||||
- action: [MoveFocus: Up,]
|
||||
key: [ Alt: 'k', Alt: Up]
|
||||
- action: [Resize: Increase,]
|
||||
key: [ Alt: '=']
|
||||
- action: [Resize: Increase,]
|
||||
key: [ Alt: '+']
|
||||
- action: [Resize: Decrease,]
|
||||
key: [ Alt: '-']
|
||||
renamepane:
|
||||
- action: [SwitchToMode: Normal,]
|
||||
key: [Char: "\n", Ctrl: 'c', Esc]
|
||||
- action: [PaneNameInput: [27] , SwitchToMode: Pane,]
|
||||
key: [Esc,]
|
||||
- action: [NewPane: ,]
|
||||
key: [ Alt: 'n',]
|
||||
- action: [MoveFocusOrTab: Left,]
|
||||
key: [ Alt: 'h', Alt: Left]
|
||||
- action: [MoveFocusOrTab: Right,]
|
||||
key: [ Alt: 'l', Alt: Right]
|
||||
- action: [MoveFocus: Down,]
|
||||
key: [ Alt: 'j', Alt: Down]
|
||||
- action: [MoveFocus: Up,]
|
||||
key: [ Alt: 'k', Alt: Up]
|
||||
- action: [Resize: Increase,]
|
||||
key: [ Alt: '=']
|
||||
- action: [Resize: Increase,]
|
||||
key: [ Alt: '+']
|
||||
- action: [Resize: Decrease,]
|
||||
key: [ Alt: '-']
|
||||
session:
|
||||
- action: [SwitchToMode: Locked,]
|
||||
key: [Ctrl: 'g']
|
||||
- action: [SwitchToMode: Resize,]
|
||||
key: [Ctrl: 'n',]
|
||||
- action: [SwitchToMode: Pane,]
|
||||
key: [Ctrl: 'p',]
|
||||
- action: [SwitchToMode: Move,]
|
||||
key: [Ctrl: 'h',]
|
||||
- action: [SwitchToMode: Tmux,]
|
||||
key: [Ctrl: 'b',]
|
||||
- action: [SwitchToMode: Tab,]
|
||||
key: [Ctrl: 't',]
|
||||
- action: [SwitchToMode: Normal,]
|
||||
key: [Ctrl: 'o', Char: "\n", Char: ' ', Esc]
|
||||
- action: [SwitchToMode: Scroll,]
|
||||
key: [Ctrl: 's']
|
||||
- action: [Quit,]
|
||||
key: [Ctrl: 'q',]
|
||||
- action: [Detach,]
|
||||
key: [Char: 'd',]
|
||||
- action: [NewPane: ,]
|
||||
key: [ Alt: 'n',]
|
||||
- action: [MoveFocusOrTab: Left,]
|
||||
key: [ Alt: 'h', Alt: Left]
|
||||
- action: [MoveFocusOrTab: Right,]
|
||||
key: [ Alt: 'l', Alt: Right]
|
||||
- action: [MoveFocus: Down,]
|
||||
key: [ Alt: 'j', Alt: Down]
|
||||
- action: [MoveFocus: Up,]
|
||||
key: [ Alt: 'k', Alt: Up]
|
||||
- action: [Resize: Increase,]
|
||||
key: [ Alt: '=']
|
||||
- action: [Resize: Increase,]
|
||||
key: [ Alt: '+']
|
||||
- action: [Resize: Decrease,]
|
||||
key: [ Alt: '-']
|
||||
tmux:
|
||||
- action: [SwitchToMode: Locked,]
|
||||
key: [Ctrl: 'g']
|
||||
- action: [SwitchToMode: Resize,]
|
||||
key: [Ctrl: 'n',]
|
||||
- action: [SwitchToMode: Pane,]
|
||||
key: [Ctrl: 'p',]
|
||||
- action: [SwitchToMode: Move,]
|
||||
key: [Ctrl: 'h',]
|
||||
- action: [SwitchToMode: Tab,]
|
||||
key: [Ctrl: 't',]
|
||||
- action: [SwitchToMode: Normal,]
|
||||
key: [Ctrl: 'o', Char: "\n", Char: ' ', Esc]
|
||||
- action: [SwitchToMode: Scroll,]
|
||||
key: [Ctrl: 's']
|
||||
- action: [SwitchToMode: Scroll,]
|
||||
key: [ Char: '[']
|
||||
- action: [Quit,]
|
||||
key: [Ctrl: 'q',]
|
||||
- action: [Write: [2,], SwitchToMode: Normal]
|
||||
key: [Ctrl: 'b']
|
||||
- action: [NewPane: Down, SwitchToMode: Normal,]
|
||||
key: [Char: "\"",]
|
||||
- action: [NewPane: Right, SwitchToMode: Normal,]
|
||||
key: [Char: '%',]
|
||||
- action: [ToggleFocusFullscreen, SwitchToMode: Normal,]
|
||||
key: [Char: 'z',]
|
||||
- action: [NewTab: , SwitchToMode: Normal,]
|
||||
key: [ Char: 'c',]
|
||||
- action: [SwitchToMode: RenameTab, TabNameInput: [0],]
|
||||
key: [Char: ',']
|
||||
- action: [GoToPreviousTab, SwitchToMode: Normal,]
|
||||
key: [ Char: 'p']
|
||||
- action: [GoToNextTab, SwitchToMode: Normal,]
|
||||
key: [ Char: 'n']
|
||||
- action: [MoveFocus: Left, SwitchToMode: Normal,]
|
||||
key: [ Left,]
|
||||
- action: [MoveFocus: Right, SwitchToMode: Normal,]
|
||||
key: [ Right,]
|
||||
- action: [MoveFocus: Down, SwitchToMode: Normal,]
|
||||
key: [ Down,]
|
||||
- action: [MoveFocus: Up, SwitchToMode: Normal,]
|
||||
key: [ Up,]
|
||||
- action: [MoveFocus: Left, SwitchToMode: Normal,]
|
||||
key: [ Char: 'h']
|
||||
- action: [MoveFocus: Right, SwitchToMode: Normal,]
|
||||
key: [ Char: 'l']
|
||||
- action: [MoveFocus: Down, SwitchToMode: Normal,]
|
||||
key: [ Char: 'j']
|
||||
- action: [MoveFocus: Up, SwitchToMode: Normal,]
|
||||
key: [ Char: 'k']
|
||||
- action: [NewPane: ,]
|
||||
key: [ Alt: 'n',]
|
||||
- action: [MoveFocusOrTab: Left,]
|
||||
key: [ Alt: 'h', Alt: Left]
|
||||
- action: [MoveFocusOrTab: Right,]
|
||||
key: [ Alt: 'l', Alt: Right]
|
||||
- action: [MoveFocus: Down,]
|
||||
key: [ Alt: 'j', Alt: Down]
|
||||
- action: [MoveFocus: Up,]
|
||||
key: [ Alt: 'k', Alt: Up]
|
||||
- action: [FocusNextPane,]
|
||||
key: [ Char: 'o']
|
||||
- action: [Resize: Increase,]
|
||||
key: [ Alt: '=']
|
||||
- action: [Resize: Increase,]
|
||||
key: [ Alt: '+']
|
||||
- action: [Resize: Decrease,]
|
||||
key: [ Alt: '-']
|
||||
- action: [Detach,]
|
||||
key: [Char: 'd',]
|
||||
plugins:
|
||||
- path: tab-bar
|
||||
tag: tab-bar
|
||||
- path: status-bar
|
||||
tag: status-bar
|
||||
- path: strider
|
||||
tag: strider
|
||||
- path: compact-bar
|
||||
tag: compact-bar
|
||||
|
||||
# Choose what to do when zellij receives SIGTERM, SIGINT, SIGQUIT or SIGHUP
|
||||
# eg. when terminal window with an active zellij session is closed
|
||||
# Options:
|
||||
# - detach (Default)
|
||||
# - quit
|
||||
#on_force_close: quit
|
||||
|
||||
# Send a request for a simplified ui (without arrow fonts) to plugins
|
||||
# Options:
|
||||
# - true
|
||||
# - false (Default)
|
||||
#simplified_ui: true
|
||||
|
||||
# Choose the path to the default shell that zellij will use for opening new panes
|
||||
# Default: $SHELL
|
||||
# default_shell: fish
|
||||
|
||||
# Toggle between having pane frames around the panes
|
||||
# Options:
|
||||
# - true (default)
|
||||
# - false
|
||||
pane_frames: false
|
||||
|
||||
# Choose the theme that is specified in the themes section.
|
||||
# For some examples, see: https://github.com/zellij-org/zellij/tree/main/example/themes
|
||||
# Default: default
|
||||
#theme: default
|
||||
|
||||
# Choose the mode that zellij uses when starting up.
|
||||
# Default: normal
|
||||
#default_mode: locked
|
||||
|
||||
# Toggle enabling the mouse mode.
|
||||
# On certain configurations, or terminals this could
|
||||
# potentially interfere with copying text.
|
||||
# Options:
|
||||
# - true (default)
|
||||
# - false
|
||||
#mouse_mode: false
|
||||
|
||||
# Configure the scroll back buffer size
|
||||
# This is the number of lines zellij stores for each pane in the scroll back
|
||||
# buffer. Excess number of lines are discarded in a FIFO fashion.
|
||||
# Valid values: positive integers
|
||||
# Default value: 10000
|
||||
#scroll_buffer_size: 10000
|
||||
|
||||
# Provide a command to execute when copying text. The text will be piped to
|
||||
# the stdin of the program to perform the copy. This can be used with
|
||||
# terminal emulators which do not support the OSC 52 ANSI control sequence
|
||||
# that will be used by default if this option is not set.
|
||||
# Examples:
|
||||
#copy_command: "xclip -selection clipboard" # x11
|
||||
#copy_command: "wl-copy" # wayland
|
||||
#copy_command: "pbcopy" # osx
|
||||
|
||||
# Choose the destination for copied text
|
||||
# Allows using the primary selection buffer (on x11/wayland) instead of the system clipboard.
|
||||
# Does not apply when using copy_command.
|
||||
# Options:
|
||||
# - system (default)
|
||||
# - primary
|
||||
#copy_clipboard: primary
|
||||
|
||||
# Enable or disable automatic copy (and clear) of selection when releasing mouse
|
||||
#copy_on_select: true
|
||||
|
||||
# Path to the default editor to use to edit pane scrollbuffer
|
||||
# scrollback_editor: /usr/bin/nano
|
||||
|
||||
theme: catppuccin
|
||||
themes:
|
||||
catppuccin:
|
||||
bg:
|
||||
- 48
|
||||
- 45
|
||||
- 65
|
||||
black:
|
||||
- 22
|
||||
- 19
|
||||
- 32
|
||||
blue:
|
||||
- 150
|
||||
- 205
|
||||
- 251
|
||||
cyan:
|
||||
- 26
|
||||
- 24
|
||||
- 38
|
||||
fg:
|
||||
- 217
|
||||
- 224
|
||||
- 238
|
||||
gray:
|
||||
- 87
|
||||
- 82
|
||||
- 104
|
||||
green:
|
||||
- 171
|
||||
- 233
|
||||
- 179
|
||||
magenta:
|
||||
- 245
|
||||
- 194
|
||||
- 231
|
||||
orange:
|
||||
- 248
|
||||
- 189
|
||||
- 150
|
||||
red:
|
||||
- 242
|
||||
- 143
|
||||
- 173
|
||||
white:
|
||||
- 217
|
||||
- 224
|
||||
- 238
|
||||
yellow:
|
||||
- 250
|
||||
- 227
|
||||
- 176
|
Loading…
Reference in a new issue