From 65a870fe98e04a7ab21517d60612016c28b1bd55 Mon Sep 17 00:00:00 2001 From: Danila Fedorin Date: Mon, 24 Jun 2019 20:15:27 -0700 Subject: [PATCH 1/6] Fix deprecated alacritty option --- alacritty/.config/alacritty/alacritty.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/alacritty/.config/alacritty/alacritty.yml b/alacritty/.config/alacritty/alacritty.yml index 0865e28..3f2343a 100644 --- a/alacritty/.config/alacritty/alacritty.yml +++ b/alacritty/.config/alacritty/alacritty.yml @@ -75,7 +75,7 @@ font: use_thin_strokes: true # Should display the render timer -render_timer: false +# render_timer: false # Colors (Pencil Dark) # colors: From 6541f6bb4b53edee0494f1b517d06d47a9719d5c Mon Sep 17 00:00:00 2001 From: Danila Fedorin Date: Sun, 7 Jul 2019 14:52:17 -0700 Subject: [PATCH 2/6] Try out the ligature vim plugin. --- nvim/.config/nvim/init.vim | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/nvim/.config/nvim/init.vim b/nvim/.config/nvim/init.vim index 3acb9bb..86e12f0 100644 --- a/nvim/.config/nvim/init.vim +++ b/nvim/.config/nvim/init.vim @@ -4,6 +4,7 @@ Plug 'ncm2/ncm2' Plug 'autozimu/LanguageClient-neovim', {'branch': 'next', 'do': 'bash install.sh' } Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --bin' } Plug 'junegunn/fzf.vim' +Plug 'enomsg/vim-haskellConcealPlus' Plug 'lervag/vimtex' Plug 'rhysd/vim-crystal' @@ -30,11 +31,11 @@ autocmd FileType crystal setlocal shiftwidth=2 " Crystal likes 2-wide indent set completeopt=noinsert,menuone let g:LanguageClient_serverCommands = { - \ 'haskell': ['hie', '--lsp'], + \ 'haskell': ['hie-wrapper', '--lsp'], \ 'rust': ['rustup', 'run', 'stable', 'rls'], - \ 'c': ['clangd'], + \ 'c': ['cquery'], \ 'crystal': ['scry'], - \ 'cpp': ['clangd'], + \ 'cpp': ['cquery'], \ 'javascript': ['javascript-typescript-stdio'], \ 'elm': ['elm-language-server', '--stdio'] \ } From 2eb62fb72bce7c218f404fda2af6ff9585ec50c7 Mon Sep 17 00:00:00 2001 From: Danila Fedorin Date: Sat, 27 Jul 2019 21:53:56 -0700 Subject: [PATCH 3/6] Add python language server and use the LanguageClient shortcuts --- nvim/.config/nvim/init.vim | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/nvim/.config/nvim/init.vim b/nvim/.config/nvim/init.vim index 86e12f0..94ab68c 100644 --- a/nvim/.config/nvim/init.vim +++ b/nvim/.config/nvim/init.vim @@ -33,11 +33,12 @@ set completeopt=noinsert,menuone let g:LanguageClient_serverCommands = { \ 'haskell': ['hie-wrapper', '--lsp'], \ 'rust': ['rustup', 'run', 'stable', 'rls'], - \ 'c': ['cquery'], + \ 'c': ['clangd'], \ 'crystal': ['scry'], - \ 'cpp': ['cquery'], + \ 'cpp': ['clangd'], \ 'javascript': ['javascript-typescript-stdio'], - \ 'elm': ['elm-language-server', '--stdio'] + \ 'elm': ['elm-language-server', '--stdio'], + \ 'python': ['python', '-m', 'pyls'] \ } let g:deoplete#enable_at_startup = 1 let g:LanguageClient_diagnosticsDisplay = { @@ -49,4 +50,7 @@ let g:LanguageClient_rootMarkers = { \ 'haskell': ['.git'], \ 'elm': ['elm.json'], \ } + colorscheme nord +nmap K :call LanguageClient_contextMenu() +nmap ? :call LanguageClient_textDocument_hover() From 5430ebf93a8df1d64b30f1c66f86ebc0243d618f Mon Sep 17 00:00:00 2001 From: Danila Fedorin Date: Sat, 27 Jul 2019 21:54:17 -0700 Subject: [PATCH 4/6] Hopefully configure polybar to be less dependent on pixel sizes --- polybar/.config/polybar/config | 36 ++++++++++++++++++---------------- 1 file changed, 19 insertions(+), 17 deletions(-) diff --git a/polybar/.config/polybar/config b/polybar/.config/polybar/config index 144a19b..88e5e47 100644 --- a/polybar/.config/polybar/config +++ b/polybar/.config/polybar/config @@ -19,18 +19,21 @@ secondary = #a3be8c alert = #bf616a [bar/example] +dpi-x = 220 +dpi-y = 200 + ;monitor = ${env:MONITOR:HDMI-1} width = 100% -height = 27 +height = 3% ;offset-x = 1% ;offset-y = 1% -radius = 6.0 +radius = 20% fixed-center = false background = ${colors.background} foreground = ${colors.foreground} -line-size = 3 +line-size = 5% line-color = #f00 border-size = 4 @@ -42,8 +45,10 @@ padding-right = 2 module-margin-left = 1 module-margin-right = 2 -font-0 = fixed:pixelsize=10;1 -font-1 = Wuncon Siji:pixelsize=12;1 +font-0 = Iosevka:pixelsize=9;1 +font-1 = Ionicons:pixelsize=9;1 +; font-0 = fixed:pixelsize=10;1 +; font-1 = Wuncon Siji:pixelsize=12;1 ;font-1 = unifont:fontformat=truetype:size=8:antialias=false;0 ;font-2 = siji:pixelsize=10;1 @@ -191,7 +196,7 @@ card = intel_backlight [module/cpu] type = internal/cpu interval = 2 -format-prefix = " " +format-prefix = " " format-prefix-foreground = ${colors.foreground-alt} format-underline = #f90000 label = %percentage:2%% @@ -199,7 +204,7 @@ label = %percentage:2%% [module/memory] type = internal/memory interval = 2 -format-prefix = " " +format-prefix = " " format-prefix-foreground = ${colors.foreground-alt} format-underline = #4bffdc label = %percentage_used%% @@ -249,7 +254,7 @@ interval = 5 date = date-alt = " %Y-%m-%d" -time = %H:%M +time =  %H:%M time-alt = %H:%M:%S format-prefix =  @@ -302,14 +307,11 @@ format-full-prefix = " " format-full-prefix-foreground = ${colors.foreground-alt} format-full-underline = ${self.format-charging-underline} -ramp-capacity-0 =  -ramp-capacity-1 =  -ramp-capacity-2 =  +ramp-capacity-0 =  +ramp-capacity-1 =  ramp-capacity-foreground = ${colors.foreground-alt} -animation-charging-0 =  -animation-charging-1 =  -animation-charging-2 =  +animation-charging-0 =  animation-charging-foreground = ${colors.foreground-alt} animation-charging-framerate = 750 @@ -327,9 +329,9 @@ label = %temperature% label-warn = %temperature% label-warn-foreground = ${colors.secondary} -ramp-0 =  -ramp-1 =  -ramp-2 =  +ramp-0 =  +ramp-1 =  +ramp-2 =  ramp-foreground = ${colors.foreground-alt} [module/powermenu] From 10039a83e1cac852886d6d8c4677b8450abd92fc Mon Sep 17 00:00:00 2001 From: Danila Fedorin Date: Sat, 27 Jul 2019 22:08:28 -0700 Subject: [PATCH 5/6] Additional tweaks to configuration --- polybar/.config/polybar/config | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/polybar/.config/polybar/config b/polybar/.config/polybar/config index 88e5e47..c9e300e 100644 --- a/polybar/.config/polybar/config +++ b/polybar/.config/polybar/config @@ -14,7 +14,7 @@ background-alt = #3b4252 ;foreground = ${xrdb:color7:#222} foreground = #d8dee9 foreground-alt = #e5e9f0 -primary = #b48ead +primary = #cf5fb4 secondary = #a3be8c alert = #bf616a @@ -101,7 +101,7 @@ interval = 25 mount-0 = / -label-mounted = %{F#0a81f5}%mountpoint%%{F-}: %percentage_used%% +label-mounted = %{F#cf5fb4}%mountpoint%%{F-}: %percentage_used%% label-unmounted = %mountpoint% not mounted label-unmounted-foreground = ${colors.foreground-alt} @@ -138,7 +138,7 @@ label-mode-foreground = #000 label-mode-background = ${colors.primary} ; focused = Active workspace on focused monitor -label-focused = %index% +label-focused = %index%! label-focused-background = ${module/bspwm.label-focused-background} label-focused-underline = ${module/bspwm.label-focused-underline} label-focused-padding = ${module/bspwm.label-focused-padding} @@ -198,7 +198,7 @@ type = internal/cpu interval = 2 format-prefix = " " format-prefix-foreground = ${colors.foreground-alt} -format-underline = #f90000 +format-underline = ${colors.primary} label = %percentage:2%% [module/memory] @@ -206,7 +206,7 @@ type = internal/memory interval = 2 format-prefix = " " format-prefix-foreground = ${colors.foreground-alt} -format-underline = #4bffdc +format-underline = ${colors.primary} label = %percentage_used%% [module/wlan] @@ -259,7 +259,7 @@ time-alt = %H:%M:%S format-prefix =  format-prefix-foreground = ${colors.foreground-alt} -format-underline = #0a6cf5 +format-underline = ${colors.primary} label = %date% %time% @@ -275,13 +275,13 @@ format-muted-foreground = ${colors.foreground-alt} label-muted = sound muted bar-volume-width = 10 -bar-volume-foreground-0 = #55aa55 -bar-volume-foreground-1 = #55aa55 -bar-volume-foreground-2 = #55aa55 -bar-volume-foreground-3 = #55aa55 -bar-volume-foreground-4 = #55aa55 -bar-volume-foreground-5 = #f5a70a -bar-volume-foreground-6 = #ff5555 +bar-volume-foreground-0 = ${colors.primary} +bar-volume-foreground-1 = ${colors.primary} +bar-volume-foreground-2 = ${colors.primary} +bar-volume-foreground-3 = ${colors.primary} +bar-volume-foreground-4 = ${colors.primary} +bar-volume-foreground-5 = ${colors.primary} +bar-volume-foreground-6 = ${colors.primary} bar-volume-gradient = false bar-volume-indicator = | bar-volume-indicator-font = 2 @@ -298,7 +298,7 @@ adapter = ADP1 full-at = 98 format-charging = -format-charging-underline = #ffb52a +format-charging-underline = ${colors.primary} format-discharging = format-discharging-underline = ${self.format-charging-underline} @@ -321,7 +321,7 @@ thermal-zone = 0 warn-temperature = 60 format =