Compare commits

...

6 commits

Author SHA1 Message Date
Sanchayan Maity ee74c8c4d8
ruff: Add minimal configuration 2023-01-26 16:55:44 +05:30
Sanchayan Maity ad1c594245
nvim: after/plugin/nvim-lint: Drop pylint and use ruff 2023-01-26 16:55:44 +05:30
Sanchayan Maity 5abfc19676
Revert "fish: functions/gl: Pipe commit view to bat"
This reverts commit ec838cb54e.

We forgot that copying is not so easy when using bat or less.
2023-01-26 16:55:44 +05:30
Sanchayan Maity 780ea535f7
alacritty: Do not bind PasteSelection
It is confusing to have both and remember what is active when. Just
use the damn clipboard.
2023-01-26 16:55:43 +05:30
Sanchayan Maity f5d12372bd
Revert "nvim: plugins: Drop sleuth now that neovim has editorconfig built-in"
This reverts commit 058c37882d.

It is still helpful to have this it seems as without this working on
projects which do not have editorconfig becomes a pain.
2023-01-26 16:55:43 +05:30
Sanchayan Maity 367d21b00b
arch-packages: Update package list
Use toot instead of tut. toot also supports operations via direct
calls to the API.
2023-01-26 16:55:43 +05:30
6 changed files with 13 additions and 13 deletions

View file

@ -219,8 +219,7 @@ colors:
# - AppKeypad
#
key_bindings:
- { key: V, mods: Control|Alt, action: Paste }
- { key: V, mods: Control|Shift, action: PasteSelection }
- { key: V, mods: Control|Shift, action: Paste }
- { key: C, mods: Control|Shift, action: Copy }
- { key: Q, mods: Control, action: Quit }
- { key: PageUp, mods: Shift, action: ScrollPageUp }

View file

@ -304,18 +304,10 @@ python
python-adblock
python-boto3
python-flake8-black
python-flit
python-flit-core
python-gitlab
python-lxml
python-matplotlib
python-pycodestyle
python-pydocstyle
python-pygments
python-pylint
python-pytest-black
python-rope
python-sphinx
qpdf
qt5-wayland
qt5ct
@ -337,6 +329,7 @@ rlwrap
rofi
rp-pppoe
rsync
ruff
rust-bindgen
rustup
s-nail
@ -384,6 +377,7 @@ tlp
tmux
tmuxp
tokei
toot
tor-browser
transmission-gtk
tree-sitter
@ -400,7 +394,6 @@ ttf-liberation
ttf-nerd-fonts-symbols-2048-em
ttf-opensans
ttf-ubuntu-font-family
tut-bin
typescript
typescript-language-server
unrar
@ -409,6 +402,7 @@ upower
usb_modeswitch
usbutils
vale-bin
valgrind
vimiv-qt
vimpc-git
vlc

View file

@ -12,7 +12,7 @@ function gl --description 'Git browse commits'
git log --color=always --format='%C(auto)%h%d %s %C(green)%C(bold)%cr% C(blue)%an' $argv | fzf --exact --no-sort --reverse --tiebreak=index --no-multi --ansi \
--preview="$view_commit" \
--header="ENTER to view, CTRL-Y to copy hash, CTRL-O to open on GitHub, CTRL-X to checkout, CTRL-C to exit, CTRL-S to cherry-pick" \
--bind "enter:execute:$view_commit_nvim | bat -ldiff --pager 'less -R'" \
--bind "enter:execute:$view_commit_nvim | nvim -R -" \
--bind "ctrl-y:execute:$copy_commit_hash" \
--bind "ctrl-x:execute:$git_checkout" \
--bind "ctrl-o:execute:$github_open" \

View file

@ -11,7 +11,7 @@ nvim_lint.linters_by_ft = {
javascript = { 'eslint_d' },
lua = { 'luacheck' },
markdown = { 'vale' },
python = { 'pylint' },
python = { 'ruff' },
sh = { 'shellcheck' },
typescript = { 'eslint_d' },
yaml = { 'yamllint' },

View file

@ -47,6 +47,7 @@ local init = function ()
-- Tim pope essentials
use {
'tpope/vim-repeat',
'tpope/vim-sleuth',
'tpope/vim-dispatch'
}
-- Directory viewer

View file

@ -0,0 +1,6 @@
[tool.ruff]
select = ["E", "F", "I", "W", "Q"]
# Never enforce `E501` (line length violations).
ignore = ["E501"]