diff options
Diffstat (limited to 'config')
| -rw-r--r-- | config/alacritty/alacritty.linux.yml | 11 | ||||
| -rw-r--r-- | config/nvim/lua/plugins.lua | 5 | ||||
| -rw-r--r-- | config/nvim/lua/telescope-config.lua | 12 | ||||
| -rwxr-xr-x | config/zsh/zprofile | 28 |
4 files changed, 35 insertions, 21 deletions
diff --git a/config/alacritty/alacritty.linux.yml b/config/alacritty/alacritty.linux.yml index fbeb1ed..d50a166 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 a5cd5ce..b373b6a 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 @@ -178,7 +179,7 @@ return require('packer').startup(function() } } local map = vim.api.nvim_set_keymap - map('n', '<C-p>', '<cmd>Telescope git_files<cr>', {}) + map('n', '<C-p>', '<CMD>lua require"telescope-config".project_files()<CR>', { noremap = true, silent = true }) map('n', '<leader>H', '<cmd>Telescope help_tags<cr>', {}) map('n', '<leader>;', '<cmd>Telescope commands<cr>', {}) map('n', '<leader>g', '<cmd>Telescope live_grep<cr>', {}) 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 diff --git a/config/zsh/zprofile b/config/zsh/zprofile index c9466d1..fef4546 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 |
