Compare commits
5
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
cd06db0274 | ||
|
|
eacaebfdef | ||
|
|
b0a2f0b132 | ||
|
|
237a56fb6c | ||
|
|
7849b91f06 |
@@ -1,4 +1,21 @@
|
||||
local servers = { "basedpyright", "ruff" }
|
||||
-- ruff is a prebuilt GitHub release binary, but mason installs basedpyright
|
||||
-- from PyPI into a venv. Debian ships venv's ensurepip separately
|
||||
-- (python3-venv), and without it every startup fails the install.
|
||||
local servers = { "ruff" }
|
||||
|
||||
local function has_python_venv()
|
||||
if vim.fn.executable("python3") ~= 1 then
|
||||
return false
|
||||
end
|
||||
vim.fn.system({ "python3", "-c", "import ensurepip" })
|
||||
return vim.v.shell_error == 0
|
||||
end
|
||||
|
||||
if has_python_venv() then
|
||||
table.insert(servers, "basedpyright")
|
||||
else
|
||||
vim.notify("python3 venv unavailable (install python3-venv): skipping LSP server basedpyright", vim.log.levels.WARN)
|
||||
end
|
||||
|
||||
local npm_servers = { "ts_ls", "svelte", "html", "cssls", "bashls" }
|
||||
local function has_public_npm()
|
||||
|
||||
@@ -4,8 +4,11 @@
|
||||
|
||||
bind-key -t vi-copy PPage page-up
|
||||
bind-key -t vi-copy NPage page-down
|
||||
bind-key -t vi-copy WheelUpPane halfpage-up
|
||||
bind-key -t vi-copy WheelDownPane halfpage-down
|
||||
# Mouse wheel scrolls 4 lines per tick, not tmux's half-page default (20 lines
|
||||
# in a 40-line pane). Old bind-key has no -N; -R is the equivalent repeat
|
||||
# count for keys in the copy-mode tables.
|
||||
bind-key -R 4 -t vi-copy WheelUpPane scroll-up
|
||||
bind-key -R 4 -t vi-copy WheelDownPane scroll-down
|
||||
bind-key -t vi-copy v begin-selection
|
||||
bind-key -t vi-copy y copy-pipe "$HOME/dotfiles/bin/clipboard-copy"
|
||||
unbind-key -t vi-copy Enter
|
||||
|
||||
@@ -3,8 +3,11 @@
|
||||
|
||||
bind-key -T copy-mode-vi PPage send-keys -X page-up
|
||||
bind-key -T copy-mode-vi NPage send-keys -X page-down
|
||||
bind-key -T copy-mode-vi WheelUpPane send-keys -X halfpage-up
|
||||
bind-key -T copy-mode-vi WheelDownPane send-keys -X halfpage-down
|
||||
# Mouse wheel scrolls 4 lines per tick, not tmux's half-page default (20 lines
|
||||
# in a 40-line pane). -N is the repeat count; scroll-up/scroll-down take no
|
||||
# direct amount argument and tmux resets the count after each command.
|
||||
bind-key -T copy-mode-vi WheelUpPane send-keys -X -N 4 scroll-up
|
||||
bind-key -T copy-mode-vi WheelDownPane send-keys -X -N 4 scroll-down
|
||||
bind-key -T copy-mode-vi v send-keys -X begin-selection
|
||||
bind-key -T copy-mode-vi y send-keys -X copy-pipe "$HOME/dotfiles/bin/clipboard-copy"
|
||||
unbind-key -T copy-mode-vi Enter
|
||||
|
||||
@@ -6,6 +6,9 @@ powerline
|
||||
thefuck
|
||||
tree
|
||||
nodejs
|
||||
# Debian splits venv's ensurepip out of python3; mason needs `python3 -m venv`
|
||||
# to install PyPI-sourced LSP servers (basedpyright)
|
||||
python3-venv
|
||||
zsh
|
||||
htop
|
||||
jq
|
||||
|
||||
Reference in New Issue
Block a user