From 4a6ac20903ad0629303b03fa0cc37ed150f53e5f Mon Sep 17 00:00:00 2001 From: Mike Date: Tue, 5 Dec 2023 13:33:23 +0100 Subject: [PATCH] fix: lint errors --- bin/get_nvim.sh | 12 ++++-------- config/wezterm/wezterm.lua | 5 ++--- scripts/pythonstartup.py | 4 +++- 3 files changed, 9 insertions(+), 12 deletions(-) diff --git a/bin/get_nvim.sh b/bin/get_nvim.sh index af3ff6b..4b2e7be 100755 --- a/bin/get_nvim.sh +++ b/bin/get_nvim.sh @@ -26,7 +26,7 @@ NAME="${NAME##*/}" URL="https://github.com/neovim/neovim" PYTHON_LIBS=0 RUBY_LIBS=0 -BUILD_LIBS=0 +# BUILD_LIBS=0 CLONE=0 FORCE_INSTALL=0 PORTABLE=0 @@ -161,10 +161,6 @@ Usage: -f, --force Ignore errors and warnings and force compilation - -b, --build Install all dependencies of the before build neovim's source code - Just few systems are supported, Debian's family, Fedora's family and - ArchLinux's family - --dev Use development builds/portables instead of stable --stable Use stable builds/portables instead of stable @@ -495,9 +491,9 @@ while [[ $# -gt 0 ]]; do -r | --ruby) RUBY_LIBS=1 ;; - -b | --build) - BUILD_LIBS=1 - ;; + # -b | --build) + # BUILD_LIBS=1 + # ;; -v | --verbose) VERBOSE=1 ;; diff --git a/config/wezterm/wezterm.lua b/config/wezterm/wezterm.lua index 9d6bbac..d652bdf 100644 --- a/config/wezterm/wezterm.lua +++ b/config/wezterm/wezterm.lua @@ -1,12 +1,12 @@ if not unpack then - _G['unpack'] = _G['table'].unpack + _G['unpack'] = _G['table'].unpack -- stylua: ignore end require 'patch_runtime' local wezterm = require 'wezterm' local sys = require 'sys' -local str = require 'utils.strings' +-- local str = require 'utils.strings' require 'globals' require 'events' @@ -153,7 +153,6 @@ return { 'Symbols Nerd Font Mono', 'Last Resort High-Efficiency', }, - color_scheme = 'tokyonight', window_background_opacity = 0.9, scrollback_lines = 10000, -- TODO: Dynamic check for DPi? diff --git a/scripts/pythonstartup.py b/scripts/pythonstartup.py index 422d0ac..bb0d2d2 100644 --- a/scripts/pythonstartup.py +++ b/scripts/pythonstartup.py @@ -14,11 +14,13 @@ try: import pyreadline + readline = pyreadline except ImportError: try: import readline as _readline - import rlcompleter + import rlcompleter # noqa + readline = _readline except ImportError: print("Error importing readline and pyreadline modules")