From 4b344dfd99d4d982dc912f185c56a2831cacf3d0 Mon Sep 17 00:00:00 2001 From: Seymur Bagirov Date: Thu, 11 Jan 2024 16:20:38 +0400 Subject: [PATCH] reenable dotnet completions --- hypr/hyprland.conf | 2 +- zsh/.zshrc | 32 ++++++++++++++++---------------- 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/hypr/hyprland.conf b/hypr/hyprland.conf index 0c2cd34..c3902eb 100644 --- a/hypr/hyprland.conf +++ b/hypr/hyprland.conf @@ -158,7 +158,7 @@ dwindle { # See https://wiki.hyprland.org/Configuring/Dwindle-Layout/ for more pseudotile = yes # master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below preserve_split = yes # you probably want this - special_scale_factor = 0.89 + special_scale_factor = 0.89, } master { diff --git a/zsh/.zshrc b/zsh/.zshrc index e06fc08..2b1a23e 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -22,22 +22,22 @@ source <(copilot completion zsh) -# _dotnet_zsh_complete() -# { -# local completions=("$(dotnet complete "$words")") -# -# # If the completion list is empty, just continue with filename selection -# if [ -z "$completions" ] -# then -# _arguments '*::arguments: _normal' -# return -# fi -# -# # This is not a variable assignment, don't remove spaces! -# _values = "${(ps:\n:)completions}" -# } -# -# compdef _dotnet_zsh_complete dotnet +_dotnet_zsh_complete() +{ + local completions=("$(dotnet complete "$words")") + + # If the completion list is empty, just continue with filename selection + if [ -z "$completions" ] + then + _arguments '*::arguments: _normal' + return + fi + + # This is not a variable assignment, don't remove spaces! + _values = "${(ps:\n:)completions}" +} + +compdef _dotnet_zsh_complete dotnet # useful plugins source ~/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh