diff --git a/nvim/lua/keymappings.lua b/nvim/lua/keymappings.lua index 9da801f..fb88cc8 100644 --- a/nvim/lua/keymappings.lua +++ b/nvim/lua/keymappings.lua @@ -118,7 +118,7 @@ wk.add({ { 'fgr', 'Telescope gh run', desc = '[TELESCOPE] GitHub view workflow runs' }, { 'fgs', - "lua require('telescope.builtin').git_status(require('telescope.themes').get_dropdown({layout_config={width=0.75}}))", + "lua require('telescope.builtin').git_status(require('telescope.themes').get_dropdown({layout_strategy='vertical', layout_config={width=0.75, height=0.95}}))", desc = '[TELESCOPE] Git status', }, { 'fh', "lua require('telescope.builtin').help_tags()", desc = '[TELESCOPE] Help tags' }, diff --git a/nvim/lua/plugins/configs/telescope.lua b/nvim/lua/plugins/configs/telescope.lua index d113de0..1b9554d 100644 --- a/nvim/lua/plugins/configs/telescope.lua +++ b/nvim/lua/plugins/configs/telescope.lua @@ -42,9 +42,11 @@ telescope.setup({ pickers = { live_grep = { theme = 'dropdown', + layout_strategy = 'horizontal', layout_config = { prompt_position = 'bottom', width = 0.75, + height = 0.95, }, }, git_branches = { diff --git a/shell/functions b/shell/functions index 22a20fa..2679d5f 100644 --- a/shell/functions +++ b/shell/functions @@ -198,12 +198,16 @@ install_mailpit() { } install_neovim() { - curl -LO https://github.com/neovim/neovim/releases/latest/download/nvim-linux64.tar.gz + set -x + local DIRNAME='nvim-linux-x86_64' + local FILENAME="${DIRNAME}.tar.gz" + curl -LO "https://github.com/neovim/neovim/releases/latest/download/${FILENAME}" -o "/tmp/${FILENAME}" rm ~/.local/bin/nvim sudo rm -rf /opt/nvim sudo rm -rf /opt/neovim - sudo tar -C /opt -xzf nvim-linux64.tar.gz - ln -s /opt/nvim-linux64/bin/nvim ~/.local/bin/nvim + sudo tar -C /opt -xzf "${FILENAME}" + ln -s "/opt/${DIRNAME}/bin/nvim" ~/.local/bin/nvim + set +x } gh_get_latest_tag() { diff --git a/shell/zshrc b/shell/zshrc index 482f480..fe10ed9 100644 --- a/shell/zshrc +++ b/shell/zshrc @@ -196,7 +196,7 @@ bindkey -M vicmd 'j' history-substring-search-down # Misc export WORDCHARS=${WORDCHARS/\//} -export EDITOR=nvim +export EDITOR="$(which nvim)" setopt HIST_IGNORE_SPACE # Because WSL does not have