mostly neovim/tmux stuffs

This commit is contained in:
Daylin Morgan 2023-01-07 10:42:54 -06:00
parent b4759716b2
commit 3056ac5c41
6 changed files with 30 additions and 17 deletions

View file

@ -130,7 +130,7 @@ def main():
print(f"{color('message:',11)}\n {summary}") print(f"{color('message:',11)}\n {summary}")
actions = { actions = {
"commit": lambda: run(f"git commit -m '{summary}'", capture=False), "commit": lambda: run(f"git commit -m \'{summary}\'", capture=False),
"commit(with message)": lambda: run( "commit(with message)": lambda: run(
f"git commit -m '{summary}' -m '# note: abort with :cq!' -e", capture=False f"git commit -m '{summary}' -m '# note: abort with :cq!' -e", capture=False
), ),

View file

@ -20,10 +20,6 @@ return {
["<C-Up>"] = false, ["<C-Up>"] = false,
["<C-q>"] = false, ["<C-q>"] = false,
["<C-s>"] = false, ["<C-s>"] = false,
["<leader>fh"] = false,
["<leader>fm"] = false,
["<leader>fn"] = false,
["<leader>fo"] = false,
["<leader>sb"] = false, ["<leader>sb"] = false,
["<leader>sc"] = false, ["<leader>sc"] = false,
["<leader>sh"] = false, ["<leader>sh"] = false,
@ -36,10 +32,6 @@ return {
j = { "gj", desc = "Navigate down" }, j = { "gj", desc = "Navigate down" },
k = { "gk", desc = "Navigate down" }, k = { "gk", desc = "Navigate down" },
}, },
t = {
-- setting a mapping to false will disable it
-- ["<esc>"] = false,
},
} }
-- map('n', 'j', "v:count ? 'j' : 'gj'", { expr = true, noremap = true }) -- map('n', 'j', "v:count ? 'j' : 'gj'", { expr = true, noremap = true })

View file

@ -1,4 +1,24 @@
-- 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 { return {
{ "lambdalisue/suda.vim" }, -- for sudo reading and writing
-- theming
{
"catppuccin/nvim",
as = "catppuccin",
config = d("zk"),
},
-- { "LnL7/vim-nix" },
-- language specific
{ "alaviss/nim.nvim" },
{ {
"quarto-dev/quarto-vim", "quarto-dev/quarto-vim",
requires = { requires = {
@ -6,11 +26,9 @@ return {
}, },
ft = { "quarto" }, ft = { "quarto" },
}, },
{ "catppuccin/nvim", as = "catppuccin", -- general tools
config = function() {
require("catppuccin").setup {} "mickael-menu/zk-nvim",
end, config = d("zk"),
}, },
{ 'LnL7/vim-nix' },
{ 'lambdalisue/suda.vim' }, -- for sudo reading and writing
} }

View file

@ -4,7 +4,7 @@ return {
"gopls", "gopls",
"html", "html",
"jsonls", "jsonls",
"pyright", -- "pyright",
"sumneko_lua", "sumneko_lua",
"texlab", "texlab",
"yamlls", "yamlls",

View file

@ -23,8 +23,10 @@ gui:
- "#89b4fa" # Blue - "#89b4fa" # Blue
selectedLineBgColor: selectedLineBgColor:
- "#313244" # Surface0 - "#313244" # Surface0
- reverse
selectedRangeBgColor: selectedRangeBgColor:
- "#313244" # Surface0 - "#313244" # Surface0
- reverse
cherryPickedCommitBgColor: cherryPickedCommitBgColor:
- "#94e2d5" # Teal - "#94e2d5" # Teal
cherryPickedCommitFgColor: cherryPickedCommitFgColor:

View file

@ -3,7 +3,8 @@ setw -g mode-keys vi
set -g prefix C-a set -g prefix C-a
unbind C-b unbind C-b
bind C-a send-prefix
set -g mouse on
# smart pane switching with awareness of vim splits # smart pane switching with awareness of vim splits
bind h select-pane -L bind h select-pane -L