sync with live configs
This commit is contained in:
parent
7e2d9ee69d
commit
2b7abf3700
9 changed files with 368 additions and 339 deletions
|
|
@ -1,29 +0,0 @@
|
||||||
layout_hatch() {
|
|
||||||
if [[ ! -f "pyproject.toml" ]]; then
|
|
||||||
if [[ ! -f "setup.py" ]]; then
|
|
||||||
local tmpdir
|
|
||||||
log_status "No pyproject.toml or setup.py found. Executing \`hatch new\` to create a new project."
|
|
||||||
PROJECT_NAME=$(basename $PWD)
|
|
||||||
tmpdir="$(mktemp -d)"
|
|
||||||
hatch new $PROJECT_NAME $tmpdir > /dev/null
|
|
||||||
cp -a --no-clobber $tmpdir/* . && rm -rf $tmpdir
|
|
||||||
else
|
|
||||||
# I haven't yet seen a case where migrating from an existing `setup.py` works, but I'm sure there are some.
|
|
||||||
log_status "No pyproject.toml found. Executing \`hatch new --init\` to migrate from setuptools."
|
|
||||||
hatch new --init || log_error "Failed to migrate from setuptools. Please fix and run \`hatch new --init\` manually." && return 1
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
HATCH_ENV=${HATCH_ENV_ACTIVE:-default}
|
|
||||||
# We need this to error out if the env doesn't exist in the pyproject.toml file.
|
|
||||||
VIRTUAL_ENV=$(hatch env find $HATCH_ENV)
|
|
||||||
|
|
||||||
if [[ ! -d $VIRTUAL_ENV ]]; then
|
|
||||||
log_status "No virtual environment exists. Executing \`hatch env create\` to create one."
|
|
||||||
hatch env create $HATCH_ENV
|
|
||||||
fi
|
|
||||||
|
|
||||||
PATH_add "$VIRTUAL_ENV/bin"
|
|
||||||
export HATCH_ENV_ACTIVE=$HATCH_ENV
|
|
||||||
export VIRTUAL_ENV
|
|
||||||
}
|
|
||||||
|
|
@ -1 +1,3 @@
|
||||||
.idea
|
.idea
|
||||||
|
|
||||||
|
**/.claude/settings.local.json
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@
|
||||||
#: individual font faces and even specify special fonts for particular
|
#: individual font faces and even specify special fonts for particular
|
||||||
#: characters.
|
#: characters.
|
||||||
|
|
||||||
font_family FiraCode
|
font_family FiraCode Nerd Font
|
||||||
bold_font auto
|
bold_font auto
|
||||||
italic_font auto
|
italic_font auto
|
||||||
bold_italic_font auto
|
bold_italic_font auto
|
||||||
|
|
@ -151,12 +151,10 @@ box_drawing_scale 0.001, 1, 1.5, 2
|
||||||
#: }}}
|
#: }}}
|
||||||
|
|
||||||
#: Cursor customization {{{
|
#: Cursor customization {{{
|
||||||
|
# cursor #cccccc
|
||||||
cursor #cccccc
|
|
||||||
|
|
||||||
#: Default cursor color
|
#: Default cursor color
|
||||||
|
# cursor_text_color #111111
|
||||||
cursor_text_color #111111
|
|
||||||
|
|
||||||
#: Choose the color of text under the cursor. If you want it rendered
|
#: Choose the color of text under the cursor. If you want it rendered
|
||||||
#: with the background color of the cell underneath instead, use the
|
#: with the background color of the cell underneath instead, use the
|
||||||
|
|
@ -250,8 +248,7 @@ mouse_hide_wait 3.0
|
||||||
#: typing text. Disabled by default on macOS as getting it to work
|
#: typing text. Disabled by default on macOS as getting it to work
|
||||||
#: robustly with the ever-changing sea of bugs that is Cocoa is too
|
#: robustly with the ever-changing sea of bugs that is Cocoa is too
|
||||||
#: much effort.
|
#: much effort.
|
||||||
|
# url_color #0087bd
|
||||||
url_color #0087bd
|
|
||||||
url_style curly
|
url_style curly
|
||||||
|
|
||||||
#: The color and style for highlighting URLs on mouse-over. url_style
|
#: The color and style for highlighting URLs on mouse-over. url_style
|
||||||
|
|
@ -418,7 +415,7 @@ initial_window_height 400
|
||||||
#: suffix of "c" on the width/height values to have them interpreted
|
#: suffix of "c" on the width/height values to have them interpreted
|
||||||
#: as number of cells instead of pixels.
|
#: as number of cells instead of pixels.
|
||||||
|
|
||||||
enabled_layouts *
|
enabled_layouts splits
|
||||||
|
|
||||||
#: The enabled window layouts. A comma separated list of layout names.
|
#: The enabled window layouts. A comma separated list of layout names.
|
||||||
#: The special value all means all layouts. The first listed layout
|
#: The special value all means all layouts. The first listed layout
|
||||||
|
|
@ -480,17 +477,14 @@ placement_strategy center
|
||||||
#: this option. Using a value of center means the cell area will be
|
#: this option. Using a value of center means the cell area will be
|
||||||
#: placed centrally. A value of top-left means the padding will be on
|
#: placed centrally. A value of top-left means the padding will be on
|
||||||
#: only the bottom and right edges.
|
#: only the bottom and right edges.
|
||||||
|
# active_border_color #00ff00
|
||||||
active_border_color #00ff00
|
|
||||||
|
|
||||||
#: The color for the border of the active window. Set this to none to
|
#: The color for the border of the active window. Set this to none to
|
||||||
#: not draw borders around the active window.
|
#: not draw borders around the active window.
|
||||||
|
# inactive_border_color #cccccc
|
||||||
inactive_border_color #cccccc
|
|
||||||
|
|
||||||
#: The color for the border of inactive windows
|
#: The color for the border of inactive windows
|
||||||
|
# bell_border_color #ff5a00
|
||||||
bell_border_color #ff5a00
|
|
||||||
|
|
||||||
#: The color for the border of inactive windows in which a bell has
|
#: The color for the border of inactive windows in which a bell has
|
||||||
#: occurred
|
#: occurred
|
||||||
|
|
@ -617,17 +611,15 @@ active_tab_title_template none
|
||||||
|
|
||||||
#: Template to use for active tabs, if not specified falls back to
|
#: Template to use for active tabs, if not specified falls back to
|
||||||
#: tab_title_template.
|
#: tab_title_template.
|
||||||
|
# active_tab_foreground #000
|
||||||
active_tab_foreground #000
|
# active_tab_background #eee
|
||||||
active_tab_background #eee
|
|
||||||
active_tab_font_style bold-italic
|
active_tab_font_style bold-italic
|
||||||
inactive_tab_foreground #444
|
# inactive_tab_foreground #444
|
||||||
inactive_tab_background #999
|
# inactive_tab_background #999
|
||||||
inactive_tab_font_style normal
|
inactive_tab_font_style normal
|
||||||
|
|
||||||
#: Tab bar colors and styles
|
#: Tab bar colors and styles
|
||||||
|
# tab_bar_background none
|
||||||
tab_bar_background none
|
|
||||||
|
|
||||||
#: Background color for the tab bar. Defaults to using the terminal
|
#: Background color for the tab bar. Defaults to using the terminal
|
||||||
#: background color.
|
#: background color.
|
||||||
|
|
@ -635,13 +627,12 @@ tab_bar_background none
|
||||||
#: }}}
|
#: }}}
|
||||||
|
|
||||||
#: Color scheme {{{
|
#: Color scheme {{{
|
||||||
|
# foreground #dddddd
|
||||||
foreground #dddddd
|
# background #000000
|
||||||
background #000000
|
|
||||||
|
|
||||||
#: The foreground and background colors
|
#: The foreground and background colors
|
||||||
|
|
||||||
background_opacity .95
|
background_opacity 1
|
||||||
|
|
||||||
#: The opacity of the background. A number between 0 and 1, where 1 is
|
#: The opacity of the background. A number between 0 and 1, where 1 is
|
||||||
#: opaque and 0 is fully transparent. This will only work if
|
#: opaque and 0 is fully transparent. This will only work if
|
||||||
|
|
@ -692,13 +683,11 @@ dim_opacity 0.75
|
||||||
|
|
||||||
#: How much to dim text that has the DIM/FAINT attribute set. One
|
#: How much to dim text that has the DIM/FAINT attribute set. One
|
||||||
#: means no dimming and zero means fully dimmed (i.e. invisible).
|
#: means no dimming and zero means fully dimmed (i.e. invisible).
|
||||||
|
# selection_foreground #000000
|
||||||
selection_foreground #000000
|
|
||||||
|
|
||||||
#: The foreground for text selected with the mouse. A value of none
|
#: The foreground for text selected with the mouse. A value of none
|
||||||
#: means to leave the color unchanged.
|
#: means to leave the color unchanged.
|
||||||
|
# selection_background #fffacd
|
||||||
selection_background #fffacd
|
|
||||||
|
|
||||||
#: The background for text selected with the mouse.
|
#: The background for text selected with the mouse.
|
||||||
|
|
||||||
|
|
@ -706,68 +695,54 @@ selection_background #fffacd
|
||||||
#: The 256 terminal colors. There are 8 basic colors, each color has a
|
#: The 256 terminal colors. There are 8 basic colors, each color has a
|
||||||
#: dull and bright version, for the first 16 colors. You can set the
|
#: dull and bright version, for the first 16 colors. You can set the
|
||||||
#: remaining 240 colors as color16 to color255.
|
#: remaining 240 colors as color16 to color255.
|
||||||
|
# color0 #000000
|
||||||
color0 #000000
|
# color8 #767676
|
||||||
color8 #767676
|
|
||||||
|
|
||||||
#: black
|
#: black
|
||||||
|
# color1 #cc0403
|
||||||
color1 #cc0403
|
# color9 #f2201f
|
||||||
color9 #f2201f
|
|
||||||
|
|
||||||
#: red
|
#: red
|
||||||
|
# color2 #19cb00
|
||||||
color2 #19cb00
|
# color10 #23fd00
|
||||||
color10 #23fd00
|
|
||||||
|
|
||||||
#: green
|
#: green
|
||||||
|
# color3 #cecb00
|
||||||
color3 #cecb00
|
# color11 #fffd00
|
||||||
color11 #fffd00
|
|
||||||
|
|
||||||
#: yellow
|
#: yellow
|
||||||
|
# color4 #0d73cc
|
||||||
color4 #0d73cc
|
# color12 #1a8fff
|
||||||
color12 #1a8fff
|
|
||||||
|
|
||||||
#: blue
|
#: blue
|
||||||
|
# color5 #cb1ed1
|
||||||
color5 #cb1ed1
|
# color13 #fd28ff
|
||||||
color13 #fd28ff
|
|
||||||
|
|
||||||
#: magenta
|
#: magenta
|
||||||
|
# color6 #0dcdcd
|
||||||
color6 #0dcdcd
|
# color14 #14ffff
|
||||||
color14 #14ffff
|
|
||||||
|
|
||||||
#: cyan
|
#: cyan
|
||||||
|
# color7 #dddddd
|
||||||
color7 #dddddd
|
# color15 #ffffff
|
||||||
color15 #ffffff
|
|
||||||
|
|
||||||
#: white
|
#: white
|
||||||
|
# mark1_foreground black
|
||||||
mark1_foreground black
|
|
||||||
|
|
||||||
#: Color for marks of type 1
|
#: Color for marks of type 1
|
||||||
|
# mark1_background #98d3cb
|
||||||
mark1_background #98d3cb
|
|
||||||
|
|
||||||
#: Color for marks of type 1 (light steel blue)
|
#: Color for marks of type 1 (light steel blue)
|
||||||
|
# mark2_foreground black
|
||||||
mark2_foreground black
|
|
||||||
|
|
||||||
#: Color for marks of type 2
|
#: Color for marks of type 2
|
||||||
|
# mark2_background #f2dcd3
|
||||||
mark2_background #f2dcd3
|
|
||||||
|
|
||||||
#: Color for marks of type 1 (beige)
|
#: Color for marks of type 1 (beige)
|
||||||
|
# mark3_foreground black
|
||||||
mark3_foreground black
|
|
||||||
|
|
||||||
#: Color for marks of type 3
|
#: Color for marks of type 3
|
||||||
|
# mark3_background #f274bc
|
||||||
mark3_background #f274bc
|
|
||||||
|
|
||||||
#: Color for marks of type 1 (violet)
|
#: Color for marks of type 1 (violet)
|
||||||
|
|
||||||
|
|
@ -891,16 +866,14 @@ term xterm-kitty
|
||||||
#: }}}
|
#: }}}
|
||||||
|
|
||||||
#: OS specific tweaks {{{
|
#: OS specific tweaks {{{
|
||||||
|
# wayland_titlebar_color system
|
||||||
wayland_titlebar_color system
|
|
||||||
|
|
||||||
#: Change the color of the kitty window's titlebar on Wayland systems
|
#: Change the color of the kitty window's titlebar on Wayland systems
|
||||||
#: with client side window decorations such as GNOME. A value of
|
#: with client side window decorations such as GNOME. A value of
|
||||||
#: system means to use the default system color, a value of background
|
#: system means to use the default system color, a value of background
|
||||||
#: means to use the background color of the currently active window
|
#: means to use the background color of the currently active window
|
||||||
#: and finally you can use an arbitrary color, such as #12af59 or red.
|
#: and finally you can use an arbitrary color, such as #12af59 or red.
|
||||||
|
# macos_titlebar_color system
|
||||||
macos_titlebar_color system
|
|
||||||
|
|
||||||
#: Change the color of the kitty window's titlebar on macOS. A value
|
#: Change the color of the kitty window's titlebar on macOS. A value
|
||||||
#: of system means to use the default system color, a value of
|
#: of system means to use the default system color, a value of
|
||||||
|
|
@ -1337,5 +1310,54 @@ map kitty_mod+delete clear_terminal reset active
|
||||||
#: }}}
|
#: }}}
|
||||||
|
|
||||||
# }}}
|
# }}}
|
||||||
include papercolor-kitty/papercolor-dark.conf
|
#include papercolor-kitty/papercolor-dark.conf
|
||||||
paste_actions filter
|
paste_actions filter
|
||||||
|
|
||||||
|
|
||||||
|
# BEGIN_KITTY_THEME
|
||||||
|
# Tokyo Night Moon
|
||||||
|
include current-theme.conf
|
||||||
|
# END_KITTY_THEME
|
||||||
|
cursor_trail 1
|
||||||
|
cursor_trail_decay 0.1 0.4
|
||||||
|
cursor_trail_start_threshold 2
|
||||||
|
# Create a new window splitting the space used by the existing one so that
|
||||||
|
# the two windows are placed one above the other
|
||||||
|
map ctrl+shift+- launch --location=hsplit
|
||||||
|
|
||||||
|
# Create a new window splitting the space used by the existing one so that
|
||||||
|
# the two windows are placed side by side
|
||||||
|
map ctrl+shift+\ launch --location=vsplit
|
||||||
|
|
||||||
|
# Create a new window splitting the space used by the existing one so that
|
||||||
|
# the two windows are placed side by side if the existing window is wide or
|
||||||
|
# one above the other if the existing window is tall.
|
||||||
|
map f4 launch --location=split
|
||||||
|
map ctrl+shift+enter launch --location=split
|
||||||
|
|
||||||
|
# Rotate the current split, changing its split axis from vertical to
|
||||||
|
# horizontal or vice versa
|
||||||
|
map f7 layout_action rotate
|
||||||
|
|
||||||
|
# Move the active window in the indicated direction
|
||||||
|
map shift+up move_window up
|
||||||
|
map shift+left move_window left
|
||||||
|
map shift+right move_window right
|
||||||
|
map shift+down move_window down
|
||||||
|
|
||||||
|
# Move the active window to the indicated screen edge
|
||||||
|
map ctrl+shift+up layout_action move_to_screen_edge top
|
||||||
|
map ctrl+shift+left layout_action move_to_screen_edge left
|
||||||
|
map ctrl+shift+right layout_action move_to_screen_edge right
|
||||||
|
map ctrl+shift+down layout_action move_to_screen_edge bottom
|
||||||
|
|
||||||
|
# Switch focus to the neighboring window in the indicated direction
|
||||||
|
map ctrl+left neighboring_window left
|
||||||
|
map ctrl+right neighboring_window right
|
||||||
|
map ctrl+up neighboring_window up
|
||||||
|
map ctrl+down neighboring_window down
|
||||||
|
|
||||||
|
# Set the bias of the split containing the currently focused window. The
|
||||||
|
# currently focused window will take up the specified percent of its parent
|
||||||
|
# window's size.
|
||||||
|
map ctrl+. layout_action bias 80
|
||||||
|
|
|
||||||
234
dot_config/nvim/init.lua
Normal file
234
dot_config/nvim/init.lua
Normal file
|
|
@ -0,0 +1,234 @@
|
||||||
|
-- init.lua - Neovim configuration converted from init.vim
|
||||||
|
|
||||||
|
-- Plugin setup using vim-plug
|
||||||
|
local Plug = vim.fn['plug#']
|
||||||
|
|
||||||
|
vim.call('plug#begin', '~/.vim/plugged')
|
||||||
|
|
||||||
|
-- UI related
|
||||||
|
Plug('chriskempson/base16-vim')
|
||||||
|
Plug('vim-airline/vim-airline')
|
||||||
|
Plug('vim-airline/vim-airline-themes')
|
||||||
|
|
||||||
|
-- Better Visual Guide
|
||||||
|
Plug('Yggdroot/indentLine')
|
||||||
|
|
||||||
|
-- Syntax check
|
||||||
|
Plug('w0rp/ale')
|
||||||
|
|
||||||
|
-- Autocomplete
|
||||||
|
Plug('ncm2/ncm2')
|
||||||
|
Plug('roxma/nvim-yarp')
|
||||||
|
Plug('ncm2/ncm2-bufword')
|
||||||
|
Plug('ncm2/ncm2-path')
|
||||||
|
Plug('ncm2/ncm2-jedi')
|
||||||
|
|
||||||
|
-- Formatter
|
||||||
|
Plug('Chiel92/vim-autoformat')
|
||||||
|
|
||||||
|
-- Themes
|
||||||
|
Plug('pineapplegiant/spaceduck', { branch = 'main' })
|
||||||
|
Plug('folke/tokyonight.nvim')
|
||||||
|
Plug('EdenEast/nightfox.nvim')
|
||||||
|
Plug('bluz71/vim-moonfly-colors')
|
||||||
|
Plug('NLKNguyen/papercolor-theme')
|
||||||
|
|
||||||
|
-- Python Plugins
|
||||||
|
Plug('Valloric/YouCompleteMe')
|
||||||
|
Plug('vim-syntastic/syntastic')
|
||||||
|
Plug('nvie/vim-flake8')
|
||||||
|
Plug('python-mode/python-mode')
|
||||||
|
Plug('airblade/vim-gitgutter')
|
||||||
|
|
||||||
|
-- General development plugins
|
||||||
|
Plug('scrooloose/nerdtree')
|
||||||
|
Plug('flazz/vim-colorschemes')
|
||||||
|
Plug('davidhalter/jedi-vim')
|
||||||
|
Plug('ervandew/supertab')
|
||||||
|
Plug('ryanoasis/vim-webdevicons')
|
||||||
|
Plug('direnv/direnv.vim')
|
||||||
|
Plug('sheerun/vim-polyglot')
|
||||||
|
Plug('tpope/vim-fugitive')
|
||||||
|
Plug('junegunn/fzf.vim')
|
||||||
|
Plug('navarasu/onedark.nvim')
|
||||||
|
Plug('stevearc/conform.nvim')
|
||||||
|
|
||||||
|
-- Bind zonefile
|
||||||
|
Plug('seveas/bind.vim')
|
||||||
|
|
||||||
|
-- Extended RST functionality
|
||||||
|
Plug('drmikehenry/vim-extline')
|
||||||
|
Plug('brookhong/DBGPavim')
|
||||||
|
Plug('dhruvasagar/vim-table-mode')
|
||||||
|
Plug('godlygeek/tabular')
|
||||||
|
Plug('plasticboy/vim-markdown')
|
||||||
|
|
||||||
|
-- Additional languages
|
||||||
|
Plug('nathanielc/vim-tickscript')
|
||||||
|
Plug('fatih/vim-go')
|
||||||
|
Plug('dbeniamine/cheat.sh-vim')
|
||||||
|
Plug('jacqueswww/vim-vyper')
|
||||||
|
Plug('tomlion/vim-solidity')
|
||||||
|
|
||||||
|
-- AI assistance
|
||||||
|
Plug('Exafunction/windsurf.vim', { branch = 'main' })
|
||||||
|
Plug('glacambre/firenvim', { ['do'] = function() vim.fn['firenvim#install'](0) end })
|
||||||
|
|
||||||
|
vim.call('plug#end')
|
||||||
|
|
||||||
|
-- Basic settings
|
||||||
|
vim.opt.compatible = false
|
||||||
|
vim.opt.splitright = true
|
||||||
|
vim.opt.number = true
|
||||||
|
vim.opt.relativenumber = true
|
||||||
|
vim.opt.incsearch = true
|
||||||
|
vim.opt.encoding = 'utf-8'
|
||||||
|
vim.opt.wrap = true
|
||||||
|
vim.opt.linebreak = true
|
||||||
|
vim.opt.list = false
|
||||||
|
vim.opt.mouse = 'a'
|
||||||
|
vim.opt.laststatus = 2
|
||||||
|
vim.opt.cursorline = true
|
||||||
|
|
||||||
|
-- Tab settings
|
||||||
|
vim.opt.tabstop = 4
|
||||||
|
vim.opt.shiftwidth = 4
|
||||||
|
vim.opt.smarttab = true
|
||||||
|
vim.opt.softtabstop = 4
|
||||||
|
vim.opt.autoindent = true
|
||||||
|
vim.opt.expandtab = true
|
||||||
|
|
||||||
|
-- Terminal colors
|
||||||
|
if vim.fn.exists('+termguicolors') == 1 then
|
||||||
|
vim.opt.termguicolors = true
|
||||||
|
vim.cmd([[let &t_8f = "\<Esc>[38;2;%lu;%lu;%lum"]])
|
||||||
|
vim.cmd([[let &t_8b = "\<Esc>[48;2;%lu;%lu;%lum"]])
|
||||||
|
end
|
||||||
|
|
||||||
|
-- Colorscheme
|
||||||
|
vim.cmd('colorscheme tokyonight-night')
|
||||||
|
|
||||||
|
-- Airline theme
|
||||||
|
vim.g.airline_theme = 'spaceduck'
|
||||||
|
vim.g.airline_powerline_fonts = 1
|
||||||
|
vim.g.Powerline_symbols = 'fancy'
|
||||||
|
|
||||||
|
-- Font settings
|
||||||
|
vim.opt.guifont = 'Sauce Code Powerline Plus Nerd File Types 9'
|
||||||
|
|
||||||
|
-- Filetype settings
|
||||||
|
vim.cmd('filetype plugin indent on')
|
||||||
|
|
||||||
|
-- Python syntax highlighting
|
||||||
|
vim.g.python_highlight_all = 1
|
||||||
|
vim.cmd('syntax on')
|
||||||
|
|
||||||
|
-- Python attempt fix
|
||||||
|
if not vim.fn.has('patch-8.1.201') then
|
||||||
|
pcall(function() vim.cmd('silent! python3 1') end)
|
||||||
|
end
|
||||||
|
|
||||||
|
-- Command mappings
|
||||||
|
vim.cmd([[cmap w!! w !sudo tee > /dev/null %]])
|
||||||
|
|
||||||
|
-- Key mappings
|
||||||
|
vim.keymap.set('n', '<F2>', ':NERDTreeToggle<CR>', { noremap = true })
|
||||||
|
vim.keymap.set('n', '<space>', 'za', { noremap = true })
|
||||||
|
vim.keymap.set('i', '<C-L>', function()
|
||||||
|
return vim.fn['copilot#Accept']("\r")
|
||||||
|
end, { silent = true, script = true, expr = true })
|
||||||
|
|
||||||
|
-- Python-mode settings
|
||||||
|
vim.g.pymode_rope = 0
|
||||||
|
vim.g.pymode_doc = 1
|
||||||
|
vim.g.pymode_doc_key = 'K'
|
||||||
|
vim.g.pymode_lint = 1
|
||||||
|
vim.g.pymode_lint_checker = 'flake8,pep8'
|
||||||
|
vim.g.pymode_lint_write = 1
|
||||||
|
vim.g.pymode_virtualenv = 1
|
||||||
|
vim.g.pymode_breakpoint = 1
|
||||||
|
vim.g.pymode_breakpoint_key = '<leader>b'
|
||||||
|
vim.g.pymode_syntax = 1
|
||||||
|
vim.g.pymode_syntax_all = 1
|
||||||
|
vim.g.pymode_syntax_indent_errors = vim.g.pymode_syntax_all
|
||||||
|
vim.g.pymode_syntax_space_errors = vim.g.pymode_syntax_all
|
||||||
|
vim.g.pymode_folding = 0
|
||||||
|
vim.g.pymode_python = 'python3'
|
||||||
|
|
||||||
|
-- RIV settings
|
||||||
|
vim.g.riv_fold_level = 0
|
||||||
|
vim.g.riv_fold_auto_update = 0
|
||||||
|
|
||||||
|
-- DBGPavim settings
|
||||||
|
vim.g.dbgPavimPort = 9000
|
||||||
|
vim.g.dbgPavimBreakAtEntry = 0
|
||||||
|
vim.g.dbgPavimOnce = 1
|
||||||
|
|
||||||
|
-- Table mode settings
|
||||||
|
vim.g.table_mode_corner_corner = '+'
|
||||||
|
vim.g.table_mode_header_fillchar = '='
|
||||||
|
|
||||||
|
-- Webdevicons settings
|
||||||
|
vim.g.webdevicons_enable = 1
|
||||||
|
vim.g.webdevicons_enable_nerdtree = 1
|
||||||
|
|
||||||
|
-- FZF layout
|
||||||
|
vim.g.fzf_layout = { window = { width = 0.8, height = 0.5, highlight = 'Comment' } }
|
||||||
|
|
||||||
|
-- IndentLine settings
|
||||||
|
vim.g.indentLine_fileTypeExclude = { 'markdown' }
|
||||||
|
|
||||||
|
-- Copilot settings
|
||||||
|
vim.g.copilot_no_tab_map = true
|
||||||
|
|
||||||
|
-- Autocommands
|
||||||
|
local augroup = vim.api.nvim_create_augroup('vimrc_autocmds', { clear = true })
|
||||||
|
|
||||||
|
vim.api.nvim_create_autocmd('FileType', {
|
||||||
|
group = augroup,
|
||||||
|
pattern = 'python',
|
||||||
|
callback = function()
|
||||||
|
vim.cmd('highlight Excess ctermbg=DarkGrey guibg=Black')
|
||||||
|
vim.fn.matchadd('Excess', [[\%80v.*]])
|
||||||
|
vim.opt_local.wrap = false
|
||||||
|
end
|
||||||
|
})
|
||||||
|
|
||||||
|
vim.api.nvim_create_autocmd('FileType', {
|
||||||
|
group = augroup,
|
||||||
|
pattern = 'markdown',
|
||||||
|
callback = function()
|
||||||
|
vim.opt_local.textwidth = 80
|
||||||
|
end
|
||||||
|
})
|
||||||
|
|
||||||
|
vim.api.nvim_create_autocmd('FileType', {
|
||||||
|
pattern = 'yaml',
|
||||||
|
callback = function()
|
||||||
|
vim.opt_local.tabstop = 2
|
||||||
|
vim.opt_local.softtabstop = 2
|
||||||
|
vim.opt_local.shiftwidth = 2
|
||||||
|
vim.opt_local.expandtab = true
|
||||||
|
end
|
||||||
|
})
|
||||||
|
|
||||||
|
vim.api.nvim_create_autocmd('FileType', {
|
||||||
|
pattern = 'gitcommit',
|
||||||
|
callback = function()
|
||||||
|
vim.fn.setpos('.', {0, 1, 1, 0})
|
||||||
|
end
|
||||||
|
})
|
||||||
|
|
||||||
|
require('conform').setup({
|
||||||
|
formatters_by_ft = {
|
||||||
|
python = { 'black' },
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
|
vim.api.nvim_create_autocmd("BufWritePre", {
|
||||||
|
pattern = "*.py",
|
||||||
|
callback = function(args)
|
||||||
|
require("conform").format({ bufnr = args.buf })
|
||||||
|
end,
|
||||||
|
})
|
||||||
|
|
||||||
|
|
@ -1,233 +0,0 @@
|
||||||
let g:plugged_home = '~/.vim/plugged'
|
|
||||||
|
|
||||||
call plug#begin(g:plugged_home)
|
|
||||||
" UI related
|
|
||||||
Plug 'chriskempson/base16-vim'
|
|
||||||
Plug 'vim-airline/vim-airline'
|
|
||||||
Plug 'vim-airline/vim-airline-themes'
|
|
||||||
" Better Visual Guide
|
|
||||||
Plug 'Yggdroot/indentLine'
|
|
||||||
" syntax check
|
|
||||||
Plug 'w0rp/ale'
|
|
||||||
" Autocomplete
|
|
||||||
Plug 'ncm2/ncm2'
|
|
||||||
Plug 'roxma/nvim-yarp'
|
|
||||||
Plug 'ncm2/ncm2-bufword'
|
|
||||||
Plug 'ncm2/ncm2-path'
|
|
||||||
Plug 'ncm2/ncm2-jedi'
|
|
||||||
" Formater
|
|
||||||
Plug 'Chiel92/vim-autoformat'
|
|
||||||
" Theme
|
|
||||||
Plug 'pineapplegiant/spaceduck', { 'branch': 'main' }
|
|
||||||
Plug 'folke/tokyonight.nvim'
|
|
||||||
Plug 'EdenEast/nightfox.nvim'
|
|
||||||
Plug 'bluz71/vim-moonfly-colors'
|
|
||||||
Plug 'NLKNguyen/papercolor-theme'
|
|
||||||
" Python Plugins
|
|
||||||
Plug 'Valloric/YouCompleteMe'
|
|
||||||
Plug 'vim-syntastic/syntastic'
|
|
||||||
Plug 'nvie/vim-flake8'
|
|
||||||
Plug 'python-mode/python-mode'
|
|
||||||
Plug 'airblade/vim-gitgutter'
|
|
||||||
"
|
|
||||||
"general development plugins
|
|
||||||
Plug 'scrooloose/nerdtree'
|
|
||||||
Plug 'flazz/vim-colorschemes'
|
|
||||||
Plug 'davidhalter/jedi-vim'
|
|
||||||
Plug 'ervandew/supertab'
|
|
||||||
Plug 'ryanoasis/vim-webdevicons'
|
|
||||||
Plug 'direnv/direnv.vim'
|
|
||||||
Plug 'sheerun/vim-polyglot'
|
|
||||||
Plug 'tpope/vim-fugitive'
|
|
||||||
Plug 'psf/black', { 'branch': 'main' }
|
|
||||||
Plug 'junegunn/fzf.vim'
|
|
||||||
Plug 'navarasu/onedark.nvim'
|
|
||||||
" This was fun and all, but getting data out sucked, so if they ever get an
|
|
||||||
" update, maybe try again
|
|
||||||
"Plugin 'ActivityWatch/aw-watcher-vim'
|
|
||||||
"
|
|
||||||
" Bind zonefile stuff
|
|
||||||
Plug 'seveas/bind.vim'
|
|
||||||
"
|
|
||||||
" extline extends rst stuff
|
|
||||||
Plug 'drmikehenry/vim-extline'
|
|
||||||
Plug 'brookhong/DBGPavim'
|
|
||||||
Plug 'dhruvasagar/vim-table-mode'
|
|
||||||
Plug 'godlygeek/tabular'
|
|
||||||
Plug 'plasticboy/vim-markdown'
|
|
||||||
" Additional languages
|
|
||||||
Plug 'nathanielc/vim-tickscript'
|
|
||||||
Plug 'fatih/vim-go'
|
|
||||||
Plug 'dbeniamine/cheat.sh-vim'
|
|
||||||
Plug 'jacqueswww/vim-vyper'
|
|
||||||
Plug 'tomlion/vim-solidity'
|
|
||||||
" I'm a cheap bastard and am not paying for copilot...so let's shut it up
|
|
||||||
" Plug 'github/copilot.vim'
|
|
||||||
" hey..cheap option arrived for copilot alternative ;)
|
|
||||||
Plug 'Exafunction/codeium.vim'
|
|
||||||
call plug#end()
|
|
||||||
|
|
||||||
filetype plugin indent on
|
|
||||||
" Set colors for spaceduck
|
|
||||||
if exists('+termguicolors')
|
|
||||||
let &t_8f = "\<Esc>[38;2;%lu;%lu;%lum"
|
|
||||||
let &t_8b = "\<Esc>[48;2;%lu;%lu;%lum"
|
|
||||||
set termguicolors
|
|
||||||
endif
|
|
||||||
let g:airline_theme = 'spaceduck'
|
|
||||||
if exists('+termguicolors')
|
|
||||||
let &t_8f = "\<Esc>[38;2;%lu;%lu;%lum"
|
|
||||||
let &t_8b = "\<Esc>[48;2;%lu;%lu;%lum"
|
|
||||||
set termguicolors
|
|
||||||
endif
|
|
||||||
|
|
||||||
" colorscheme spaceduck
|
|
||||||
colorscheme tokyonight-night
|
|
||||||
|
|
||||||
" set the number style to hybrid
|
|
||||||
set number relativenumber
|
|
||||||
|
|
||||||
|
|
||||||
" READ FROM .vimrc
|
|
||||||
|
|
||||||
set nocompatible " required
|
|
||||||
set splitright
|
|
||||||
filetype off " required
|
|
||||||
" Handy hack to force a write using sudo when you forget to 'sudo vi'
|
|
||||||
cmap w!! w !sudo tee > /dev/null %
|
|
||||||
|
|
||||||
set pastetoggle=<F10>
|
|
||||||
|
|
||||||
set incsearch
|
|
||||||
set encoding=utf-8
|
|
||||||
set wrap
|
|
||||||
set linebreak
|
|
||||||
set nolist
|
|
||||||
|
|
||||||
" Attempt to fix python/python3 issue
|
|
||||||
" To run py2 stuff, you can force with "vim --cmd 'let py2 = 1'
|
|
||||||
"if exists('py2') && has('python')
|
|
||||||
"elseif has('python3')
|
|
||||||
if !has('patch-8.1.201')
|
|
||||||
silent! python3 1
|
|
||||||
endif
|
|
||||||
|
|
||||||
"let g:deoplete#enable_at_startup = 1
|
|
||||||
"Plugin 'Shougo/deoplete.nvim'
|
|
||||||
|
|
||||||
" Add all your plugins here (note older versions of Vundle used Bundle instead
|
|
||||||
" of Plugin)
|
|
||||||
|
|
||||||
" All of your Plugins must be added before the following line
|
|
||||||
filetype plugin indent on " required
|
|
||||||
"Powerline setup
|
|
||||||
"set guifont=PowerLineSymbols\ DejaVu\ Sans\ Mono\ for\ Powerline\ 9
|
|
||||||
" set guifont=DejaVu\ Sans\ Mono\ for\ Powerline\ Plus\ Nerd\ File\ Types\ 9
|
|
||||||
set guifont=Sauce\ Code\ Powerline\ Plus\ Nerd\ File\ Types\ 9
|
|
||||||
" set guifont=Anonymous\ Pro\ for\ Powerline\ Regular/9
|
|
||||||
let g:Powerline_symbols = 'fancy'
|
|
||||||
let g:airline_powerline_fonts = 1
|
|
||||||
set laststatus=2
|
|
||||||
|
|
||||||
"NerdTree map to <f2>
|
|
||||||
map <F2> :NERDTreeToggle<CR>
|
|
||||||
|
|
||||||
"colorscheme jellybeans
|
|
||||||
|
|
||||||
"Make python-friendly tabs
|
|
||||||
set tabstop=4
|
|
||||||
set shiftwidth=4
|
|
||||||
set smarttab
|
|
||||||
set softtabstop=4
|
|
||||||
set autoindent
|
|
||||||
set expandtab
|
|
||||||
"let &colorcolumn="80,".join(range(81,999),",")
|
|
||||||
|
|
||||||
augroup vimrc_autocmds
|
|
||||||
autocmd!
|
|
||||||
"highlight characters past col 80
|
|
||||||
autocmd FileType python highlight Excess ctermbg=DarkGrey guibg=Black
|
|
||||||
autocmd FileType python match Excess /\%80v.*/
|
|
||||||
autocmd FileType python set nowrap
|
|
||||||
" autocmd FileType rst set textwidth=80
|
|
||||||
autocmd FileType markdown set textwidth=80
|
|
||||||
augroup END
|
|
||||||
|
|
||||||
set mouse=a
|
|
||||||
|
|
||||||
" python-mode settings
|
|
||||||
" Python-mode
|
|
||||||
" Activate rope
|
|
||||||
" Keys:
|
|
||||||
" K Show python docs
|
|
||||||
" <Ctrl-Space> Rope autocomplete
|
|
||||||
" <Ctrl-c>g Rope goto definition
|
|
||||||
" <Ctrl-c>d Rope show documentation
|
|
||||||
" <Ctrl-c>f Rope find occurrences
|
|
||||||
" <Leader>b Set, unset breakpoint (g:pymode_breakpoint enabled)
|
|
||||||
" [[ Jump on previous class or function (normal, visual, operator
|
|
||||||
" modes)
|
|
||||||
" ]] Jump on next class or function (normal, visual, operator
|
|
||||||
" modes)
|
|
||||||
" [M Jump on previous class or method (normal, visual, operator
|
|
||||||
" modes)
|
|
||||||
" ]M Jump on next class or method (normal, visual, operator
|
|
||||||
" modes)
|
|
||||||
let g:pymode_rope = 0
|
|
||||||
|
|
||||||
" Documentation
|
|
||||||
let g:pymode_doc = 1
|
|
||||||
let g:pymode_doc_key = 'K'
|
|
||||||
|
|
||||||
"Linting
|
|
||||||
let g:pymode_lint = 1
|
|
||||||
"let g:pymode_lint_checker = "pyflakes,pep8"
|
|
||||||
let g:pymode_lint_checker = "flake8,pep8"
|
|
||||||
" Auto check on save
|
|
||||||
let g:pymode_lint_write = 1
|
|
||||||
|
|
||||||
" Support virtualenv
|
|
||||||
let g:pymode_virtualenv = 1
|
|
||||||
|
|
||||||
" Enable breakpoints plugin
|
|
||||||
let g:pymode_breakpoint = 1
|
|
||||||
let g:pymode_breakpoint_key = '<leader>b'
|
|
||||||
|
|
||||||
" syntax highlighting
|
|
||||||
let g:pymode_syntax = 1
|
|
||||||
let g:pymode_syntax_all = 1
|
|
||||||
let g:pymode_syntax_indent_errors = g:pymode_syntax_all
|
|
||||||
let g:pymode_syntax_space_errors = g:pymode_syntax_all
|
|
||||||
|
|
||||||
" Don't autofold code
|
|
||||||
let g:pymode_folding = 0
|
|
||||||
let g:riv_fold_level = 0
|
|
||||||
let g:riv_fold_auto_update = 0
|
|
||||||
nnoremap <space> za
|
|
||||||
|
|
||||||
let g:dbgPavimPort = 9000
|
|
||||||
let g:dbgPavimBreakAtEntry = 0
|
|
||||||
let g:dbgPavimOnce = 1
|
|
||||||
|
|
||||||
let python_highlight_all=1
|
|
||||||
syntax on
|
|
||||||
|
|
||||||
let g:pymode_python = 'python3'
|
|
||||||
|
|
||||||
" For table mode RST friendliness
|
|
||||||
let g:table_mode_corner_corner='+'
|
|
||||||
let g:table_mode_header_fillchar='='
|
|
||||||
let g:webdevicons_enable = 1
|
|
||||||
let g:webdevicons_enable_nerdtree = 1
|
|
||||||
autocmd FileType yaml setlocal ts=2 sts=2 sw=2 expandtab
|
|
||||||
autocmd BufWritePre *.py execute ':Black'
|
|
||||||
let g:fzf_layout = { 'window': { 'width': 0.8, 'height': 0.5, 'highlight': 'Comment' } }
|
|
||||||
let g:indentLine_fileTypeExclude = ['markdown']
|
|
||||||
set cursorline
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
imap <silent><script><expr> <C-L> copilot#Accept("\<CR>")
|
|
||||||
let g:copilot_no_tab_map = v:true
|
|
||||||
|
|
||||||
autocmd FileType gitcommit call setpos('.', [0, 1, 1, 0])
|
|
||||||
|
|
@ -48,7 +48,7 @@ recurrence.indicator=♺
|
||||||
nag=
|
nag=
|
||||||
dateformat=Y-M-DTH:N
|
dateformat=Y-M-DTH:N
|
||||||
verbose=no
|
verbose=no
|
||||||
news.version=2.6.0
|
news.version=3.4.1
|
||||||
|
|
||||||
#Reports
|
#Reports
|
||||||
report._reviewed.description=Tasksh review report. Adjust the filter to your needs.
|
report._reviewed.description=Tasksh review report. Adjust the filter to your needs.
|
||||||
|
|
@ -76,6 +76,23 @@ uda.status_report.default=display
|
||||||
|
|
||||||
uda.delegated.type=string
|
uda.delegated.type=string
|
||||||
uda.delegated.label=Delegated to
|
uda.delegated.label=Delegated to
|
||||||
|
|
||||||
|
# Bugwarrior UDAs
|
||||||
|
uda.logseqid.type=string
|
||||||
|
uda.logseqid.label=Logseq ID
|
||||||
|
uda.logsequuid.type=string
|
||||||
|
uda.logsequuid.label=Logseq UUID
|
||||||
|
uda.logseqstate.type=string
|
||||||
|
uda.logseqstate.label=Logseq State
|
||||||
|
uda.logseqtitle.type=string
|
||||||
|
uda.logseqtitle.label=Logseq Title
|
||||||
|
uda.logseqdone.type=date
|
||||||
|
uda.logseqdone.label=Logseq Done
|
||||||
|
uda.logsequri.type=string
|
||||||
|
uda.logsequri.label=Logseq
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
report.ready.filter=+READY delegated:
|
report.ready.filter=+READY delegated:
|
||||||
report.delegated.description=Tasks delegated to others
|
report.delegated.description=Tasks delegated to others
|
||||||
report.delegated.columns=id,project,description,delegated
|
report.delegated.columns=id,project,description,delegated
|
||||||
|
|
@ -93,4 +110,7 @@ context.home.write=+home
|
||||||
|
|
||||||
#include ~/.config/task/intheam
|
#include ~/.config/task/intheam
|
||||||
#include ~/.config/task/wingtask
|
#include ~/.config/task/wingtask
|
||||||
|
sync.server.client_id=482dce79-0f1e-4f2c-8878-c03ca5ee1a31
|
||||||
|
sync.encryption_secret=market1
|
||||||
|
sync.server.url=http://localhost:3737
|
||||||
context=work
|
context=work
|
||||||
|
|
|
||||||
|
|
@ -1703,7 +1703,8 @@
|
||||||
# - verbose: Enable instant prompt and print a warning when detecting console output during
|
# - verbose: Enable instant prompt and print a warning when detecting console output during
|
||||||
# zsh initialization. Choose this if you've never tried instant prompt, haven't
|
# zsh initialization. Choose this if you've never tried instant prompt, haven't
|
||||||
# seen the warning, or if you are unsure what this all means.
|
# seen the warning, or if you are unsure what this all means.
|
||||||
typeset -g POWERLEVEL9K_INSTANT_PROMPT=verbose
|
# typeset -g POWERLEVEL9K_INSTANT_PROMPT=verbose
|
||||||
|
typeset -g POWERLEVEL9K_INSTANT_PROMPT=quiet
|
||||||
|
|
||||||
# Hot reload allows you to change POWERLEVEL9K options after Powerlevel10k has been initialized.
|
# Hot reload allows you to change POWERLEVEL9K options after Powerlevel10k has been initialized.
|
||||||
# For example, you can type POWERLEVEL9K_BACKGROUND=red and see your prompt turn red. Hot reload
|
# For example, you can type POWERLEVEL9K_BACKGROUND=red and see your prompt turn red. Hot reload
|
||||||
|
|
|
||||||
|
|
@ -27,5 +27,5 @@ thunderlink.regex="(cb)?thunderlink:.*"
|
||||||
thunderlink.command="/home/kellya/bin/cb_thunderlink/cb_thunderlink $FILE"
|
thunderlink.command="/home/kellya/bin/cb_thunderlink/cb_thunderlink $FILE"
|
||||||
joplin.regex="joplin:.*"
|
joplin.regex="joplin:.*"
|
||||||
joplin.command="/home/kellya/.joplin/Joplin.AppImage $FILE"
|
joplin.command="/home/kellya/.joplin/Joplin.AppImage $FILE"
|
||||||
logseq.regex="logseq:.*"
|
logseq.target=logsequri
|
||||||
logseq.command="logseq $FILE"
|
logseq.command="logseq $FILE"
|
||||||
|
|
|
||||||
20
dot_zshrc
20
dot_zshrc
|
|
@ -31,7 +31,7 @@ ZSH_THEME="powerlevel10k/powerlevel10k"
|
||||||
# DISABLE_AUTO_TITLE="true"
|
# DISABLE_AUTO_TITLE="true"
|
||||||
|
|
||||||
# Uncomment the following line to enable command auto-correction.
|
# Uncomment the following line to enable command auto-correction.
|
||||||
# ENABLE_CORRECTION="true"
|
#ENABLE_CORRECTION="true"
|
||||||
|
|
||||||
# Uncomment the following line to display red dots whilst waiting for completion.
|
# Uncomment the following line to display red dots whilst waiting for completion.
|
||||||
COMPLETION_WAITING_DOTS="true"
|
COMPLETION_WAITING_DOTS="true"
|
||||||
|
|
@ -88,7 +88,7 @@ show_virtual_env() {
|
||||||
|
|
||||||
unsetopt histverify
|
unsetopt histverify
|
||||||
alias rtask="task rc:/home/kellya/.taskrc_tinslin"
|
alias rtask="task rc:/home/kellya/.taskrc_tinslin"
|
||||||
alias icat="kitty +kitten icat"
|
alias icat="timg"
|
||||||
alias d="kitty +kitten diff"
|
alias d="kitty +kitten diff"
|
||||||
#eval "$(ntfy shell-integration)"
|
#eval "$(ntfy shell-integration)"
|
||||||
#source /usr/share/gems/gems/tmuxinator-0.6.11/completion/tmuxinator.zsh
|
#source /usr/share/gems/gems/tmuxinator-0.6.11/completion/tmuxinator.zsh
|
||||||
|
|
@ -101,10 +101,10 @@ source /usr/bin/virtualenvwrapper.sh
|
||||||
|
|
||||||
#Aliases
|
#Aliases
|
||||||
alias dum='du -sh *|egrep ".*\.?[0-9]M"'
|
alias dum='du -sh *|egrep ".*\.?[0-9]M"'
|
||||||
alias shrug='curl shrug.io|xclip'
|
alias shrug='curl shrug.io|wl-copy'
|
||||||
alias weather='curl wttr.in'
|
alias weather='curl wttr.in'
|
||||||
alias ipython='ipython --no-confirm-exit'
|
alias ipython='ipython --no-confirm-exit'
|
||||||
|
alias nano='vi'
|
||||||
#Variable Exports
|
#Variable Exports
|
||||||
export EDITOR='nvim'
|
export EDITOR='nvim'
|
||||||
export PATH="$PATH:/home/kellya/go/bin"
|
export PATH="$PATH:/home/kellya/go/bin"
|
||||||
|
|
@ -201,3 +201,15 @@ source /usr/share/zsh-autosuggestions/zsh-autosuggestions.zsh
|
||||||
# bun
|
# bun
|
||||||
export BUN_INSTALL="$HOME/.local/share/reflex/bun"
|
export BUN_INSTALL="$HOME/.local/share/reflex/bun"
|
||||||
export PATH="$BUN_INSTALL/bin:$PATH"
|
export PATH="$BUN_INSTALL/bin:$PATH"
|
||||||
|
export TASK_SRC="cli"
|
||||||
|
export CORRECT_IGNORE=".*"
|
||||||
|
|
||||||
|
# pnpm
|
||||||
|
export PNPM_HOME="/home/kellya/.local/share/pnpm"
|
||||||
|
case ":$PATH:" in
|
||||||
|
*":$PNPM_HOME:"*) ;;
|
||||||
|
*) export PATH="$PNPM_HOME:$PATH" ;;
|
||||||
|
esac
|
||||||
|
# pnpm end
|
||||||
|
LOGSEQ_GRAPH_OPT="--graph notes"
|
||||||
|
alias logseq="~/.local/bin/logseq $LOGSEQ_GRAPH_OPT"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue