diff options
author | justanothercatgirl <sotov2070@gmail.com> | 2023-10-22 18:51:41 +0000 |
---|---|---|
committer | justanothercatgirl <sotov2070@gmail.com> | 2023-10-22 18:51:41 +0000 |
commit | 43f9769f63a98efe50b94886bf7a501c011d871d (patch) | |
tree | f6bbbebf947cdb6e67223d4c5f8399af7f7306b8 /.config | |
parent | 726dbe2c74a2cec6af14cd67fab0d08ad6edf9fc (diff) |
aaaaaaaaaa
Diffstat (limited to '.config')
-rw-r--r-- | .config/i3/config | 16 | ||||
-rw-r--r-- | .config/nvim/coc-settings.json | 13 | ||||
-rw-r--r-- | .config/nvim/init.vim | 57 |
3 files changed, 79 insertions, 7 deletions
diff --git a/.config/i3/config b/.config/i3/config index 39d5c37..7909229 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -26,6 +26,9 @@ bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && $refresh_i3status bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle && $refresh_i3status +bindsym $mod+b exec sudo systemctl start bluetooth.service +bindsym $mod+Shift+b exec sudo systemctl stop bluetoth.service + # Use Mouse+$mod to drag floating windows to their wanted position floating_modifier $mod @@ -118,7 +121,7 @@ set $ws4 "4: file manager" set $ws5 "5: office" set $ws6 "6" set $ws7 "7" -set $ws8 "8" +set $ws8 "8: media player" set $ws9 "9: code assisting" set $ws10 "10: code editors" @@ -155,10 +158,13 @@ assign [class="discord"] workspace $ws3 assign [class="TelegramDesktop"] workspace $ws3 assign [class="fm"] workspace $ws4 assign [class="Double Commander"] workspace $ws4 +assign [class="org.gnome.Nautilus"] workspace $ws4 assign [class="QtCreator"] workspace $ws10 assign [class="tm"] workspace $ws5 assign [class="pr"] workspace $ws5 assign [class="pm"] workspace $ws5 +assign [class="vlc"] workspace $ws8 +assign [class="libreoffice"] workspace $ws5 #assign [class="GigaQt"] workspace $ws9 @@ -247,9 +253,10 @@ default_border pixel 3 exec xrandr --setprovideroutputsource NVIDIA-G0 Intel exec ~/.screenlayout/doublemonitor.layout.sh -#disable integrated keyboard input +# disable integrated keyboard input +# please, just work (check out that function in bashrc lmao) exec kboff -#switch keyboard colors +# switch keyboard colors exec openrgb --color "00FFFF" exec $terminal @@ -268,6 +275,3 @@ exec_always xset r rate 333 25 # empty lines at the EOF - - - diff --git a/.config/nvim/coc-settings.json b/.config/nvim/coc-settings.json new file mode 100644 index 0000000..e2621cd --- /dev/null +++ b/.config/nvim/coc-settings.json @@ -0,0 +1,13 @@ +{ + "languageserver" : { + "haskell": { + "command": "haskell-language-server-wrapper", + "args": ["--lsp"], + "rootPatterns": ["*.cabal", "stack.yaml", "cabal.project", "package.yaml", "hie.yaml"], + "filetypes": ["hs", "haskell", "lhaskell"], + "settings": { + + } + } + } +} diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim index 58fa1d6..117b258 100644 --- a/.config/nvim/init.vim +++ b/.config/nvim/init.vim @@ -19,13 +19,68 @@ Plug 'https://github.com/ryanoasis/vim-devicons' " icons for some plugins????? Plug 'https://github.com/terryma/vim-multiple-cursors' " this is gonna be tough to learn... " Plug 'ycm-core/YouCompleteMe' " autocompletion (REQUIRES PYTHON3 VENV) Plug 'neoclide/coc.nvim', {'branch': 'release'} " Language-server +call plug#end() + +set nobackup +set nowritebackup +set updatetime=420 cmap w!! w !sudo tee % > /dev/null nnoremap <C-f> :NERDTreeFocus<CR> +inoremap <silent><expr> <TAB> + \ coc#pum#visible() ? coc#pum#next(1) : + \ CheckBackspace() ? "\<Tab>" : + \ coc#refresh() +inoremap <expr><S-Tab> coc#pum#visible() ? coc#pum#confirm() + \: "<C-g>u<CR>\<c-r>=coc#on_enter()\<CR>" +function! CheckBackspace() abort + let col = col('.') - 1 + return !col || getline('.')[col - 1] =~# '\s' +endfunction -call plug#end() +inoremap <silent><expr> <c-space> coc#refresh() +nmap <silent> [g <Plug>(coc-diagnostic-prev) +nmap <silent> ]g <Plug>(coc-diagnostic-next) + +nmap <silent> gd <Plug>(coc-definition) +nmap <silent> gy <Plug>(coc-type-definition) +nmap <silent> gi <Plug>(coc-implementation) +nmap <silent> gr <Plug>(coc-references) + +nnoremap <silent> K :call ShowDocumentation()<CR> + +function! ShowDocumentation() + if CocAction('hasProvider', 'hover') + call CocActionAsync('doHover') + else + call feedkeys('K', 'in') + endif +endfunction + +autocmd CursorHold * silent call CocActionAsync('highlight') +nmap <leader>rn <Plug>(coc-rename) + +set statusline^=%{coc#status()}%{get(b:,'coc_current_function','')} + +" Mappings for CoCList +" Show all diagnostics +nnoremap <silent><nowait> <space>a :<C-u>CocList diagnostics<cr> +" Manage extensions +nnoremap <silent><nowait> <space>e :<C-u>CocList extensions<cr> +" Show commands +nnoremap <silent><nowait> <space>c :<C-u>CocList commands<cr> +" Find symbol of current document +nnoremap <silent><nowait> <space>o :<C-u>CocList outline<cr> +" Search workspace symbols +nnoremap <silent><nowait> <space>s :<C-u>CocList -I symbols<cr> +" Do default action for next item +nnoremap <silent><nowait> <space>j :<C-u>CocNext<CR> +" Do default action for previous item +nnoremap <silent><nowait> <space>k :<C-u>CocPrev<CR> +" Resume latest coc list +nnoremap <silent><nowait> <space>p :<C-u>CocListResume<CR> :colo evening |