From e5872009f0870f4ea2ca8786149f7c92229f5d00 Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Thu, 26 May 2022 13:12:29 +0200 Subject: Updatd alacritty linux config --- config/alacritty/alacritty.linux.yml | 11 ++++++----- config/nvim/lua/plugins.lua | 3 ++- 2 files changed, 8 insertions(+), 6 deletions(-) (limited to 'config') diff --git a/config/alacritty/alacritty.linux.yml b/config/alacritty/alacritty.linux.yml index 7ca4f80..fc50a27 100644 --- a/config/alacritty/alacritty.linux.yml +++ b/config/alacritty/alacritty.linux.yml @@ -4,7 +4,8 @@ env: TERM: xterm-256color - WINIT_X11_SCALE_FACTOR: '1' + # https://wiki.archlinux.org/title/Alacritty#Different_font_size_on_multiple_monitors + WINIT_X11_SCALE_FACTOR: "1" # font font: @@ -13,13 +14,13 @@ font: x: 0 y: 0 normal: - family: Fira Code + family: FiraCode style: Regular italic: - family: FiraMono - style: Italic + family: FiraCode + style: Light bold: - family: Fira Code + family: FiraCode style: Bold use_thin_strokes: false diff --git a/config/nvim/lua/plugins.lua b/config/nvim/lua/plugins.lua index 71498e9..b2c68c7 100644 --- a/config/nvim/lua/plugins.lua +++ b/config/nvim/lua/plugins.lua @@ -127,7 +127,8 @@ return require('packer').startup(function() theme = 'gruvbox', icons_enabled = true, section_separators = '', - component_separators = '' + component_separators = '', + globalstatus = true, } } end -- cgit From 9f09a23e20ea1ea4e8646e826156112c9ca7725c Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Thu, 26 May 2022 13:26:01 +0200 Subject: Updated nvim telescope fallback to files if can't find git repo --- config/nvim/lua/plugins.lua | 2 +- config/nvim/lua/telescope-config.lua | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 config/nvim/lua/telescope-config.lua (limited to 'config') diff --git a/config/nvim/lua/plugins.lua b/config/nvim/lua/plugins.lua index b2c68c7..4ca6124 100644 --- a/config/nvim/lua/plugins.lua +++ b/config/nvim/lua/plugins.lua @@ -179,7 +179,7 @@ return require('packer').startup(function() } } local map = vim.api.nvim_set_keymap - map('n', '', 'Telescope git_files', {}) + map('n', '', 'lua require"telescope-config".project_files()', { noremap = true, silent = true }) map('n', 'H', 'Telescope help_tags', {}) map('n', ';', 'Telescope commands', {}) end diff --git a/config/nvim/lua/telescope-config.lua b/config/nvim/lua/telescope-config.lua new file mode 100644 index 0000000..fbb0c79 --- /dev/null +++ b/config/nvim/lua/telescope-config.lua @@ -0,0 +1,12 @@ +-- from: https://github.com/nvim-telescope/telescope.nvim/wiki/Configuration-Recipes#falling-back-to-find_files-if-git_files-cant-find-a-git-directory +local M = {} + +M.project_files = function() + local opts = {} -- define here if you want to define something + local ok = pcall(require"telescope.builtin".git_files, opts) + if not ok then + require"telescope.builtin".find_files(opts) + end +end + +return M -- cgit From 796504bdf965fec883e620788d54bf90807361d5 Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Thu, 26 May 2022 15:09:30 +0200 Subject: Fixing test script and zprofile shellcheck errors --- config/zsh/zprofile | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'config') diff --git a/config/zsh/zprofile b/config/zsh/zprofile index b64522f..1ec728f 100755 --- a/config/zsh/zprofile +++ b/config/zsh/zprofile @@ -36,7 +36,7 @@ export INPUTRC="$XDG_CONFIG_HOME/readline/inputrc" export PYTHONSTARTUP="$XDG_CONFIG_HOME/python/startup.py" export ASPELL_CONF="per-conf $XDG_CONFIG_HOME/aspell/aspell.conf; personal $XDG_CONFIG_HOME/aspell/en.pws; repl $XDG_CONFIG_HOME/aspell/en.prepl" export BUNDLE_USER_CONFIG="$XDG_CONFIG_HOME"/bundle -export NPM_CONFIG_USERCONFIG=$XDG_CONFIG_HOME/npm/npmrc +export NPM_CONFIG_USERCONFIG="$XDG_CONFIG_HOME/npm/npmrc" # shellcheck disable=SC2016 export VIMINIT='let $MYVIMRC="$XDG_CONFIG_HOME/vim/vimrc" | source $MYVIMRC' export IPYTHONDIR="$XDG_CONFIG_HOME/ipython" @@ -60,19 +60,19 @@ export XAUTHORITY="$XDG_RUNTIME_DIR/Xauthority" # shellcheck disable=SC2155 # color in man (less pager) -export LESS_TERMCAP_mb=$(printf '%b' '\e[1;32m') -export LESS_TERMCAP_md=$(printf '%b' '\e[1;32m') -export LESS_TERMCAP_me=$(printf '%b' '\e[0m') -export LESS_TERMCAP_se=$(printf '%b' '\e[0m') -export LESS_TERMCAP_so=$(printf '%b' '\e[01;33m') -export LESS_TERMCAP_ue=$(printf '%b' '\e[0m') -export LESS_TERMCAP_us=$(printf '%b' '\e[1;4;31m') -export LESS_TERMCAP_mr=$(tput rev) -export LESS_TERMCAP_mh=$(tput dim) -export LESS_TERMCAP_ZN=$(tput ssubm) -export LESS_TERMCAP_ZV=$(tput rsubm) -export LESS_TERMCAP_ZO=$(tput ssupm) -export LESS_TERMCAP_ZW=$(tput rsupm) +export LESS_TERMCAP_mb="$(printf '%b' '\e[1;32m')" +export LESS_TERMCAP_md="$(printf '%b' '\e[1;32m')" +export LESS_TERMCAP_me="$(printf '%b' '\e[0m')" +export LESS_TERMCAP_se="$(printf '%b' '\e[0m')" +export LESS_TERMCAP_so="$(printf '%b' '\e[01;33m')" +export LESS_TERMCAP_ue="$(printf '%b' '\e[0m')" +export LESS_TERMCAP_us="$(printf '%b' '\e[1;4;31m')" +export LESS_TERMCAP_mr="$(tput rev)" +export LESS_TERMCAP_mh="$(tput dim)" +export LESS_TERMCAP_ZN="$(tput ssubm)" +export LESS_TERMCAP_ZV="$(tput rsubm)" +export LESS_TERMCAP_ZO="$(tput ssupm)" +export LESS_TERMCAP_ZW="$(tput rsupm)" export MINIKUBE_IN_STYLE=false # disable cringe minikube emojies -- cgit