Forráskód Böngészése

Sync: 2026-04-16 20:57:37

Gabriel Capella 3 napja
szülő
commit
be8056b474
2 módosított fájl, 22 hozzáadás és 4 törlés
  1. 1 2
      dots/.config/sway/config
  2. 21 2
      dots/.vimrc

+ 1 - 2
dots/.config/sway/config

@@ -168,8 +168,6 @@ bindsym XF86MonBrightnessUp exec ddcutil setvcp --sn 6L1M413 10 + 5
 bindsym XF86MonBrightnessDown exec ddcutil setvcp --sn 6L1M413 10 - 5
 # @end
 # @host jellyfish
-bindsym --locked XF86MonBrightnessUp exec light -A 5
-bindsym --locked XF86MonBrightnessDown exec light -U 5
 bindsym XF86Display exec wdisplays
 # @end
 
@@ -224,6 +222,7 @@ input type:touchpad {
 
 
 # @host jellyfish
+exec wluma
 exec swayidle -w \
          timeout 300 'gtklock -d -c /home/capella/.config/gtklock/config.ini' \
          timeout 600 'swaymsg "output * power off" && ddcutil setvcp --sn 6L1M413 D6 0x05' \

+ 21 - 2
dots/.vimrc

@@ -26,6 +26,8 @@ Plug 'dense-analysis/ale'
 Plug 'junegunn/fzf'
 Plug 'junegunn/fzf.vim'
 Plug 'sheerun/vim-polyglot'
+Plug 'fatih/vim-go', { 'do': ':GoUpdateBinaries' }
+Plug 'tpope/vim-commentary'
 
 call plug#end()
 filetype plugin indent on
@@ -48,8 +50,14 @@ set backspace=indent,eol,start
 
 " Show line numbers
 set number
+set relativenumber
 set noruler
 set cursorline
+set scrolloff=8
+set hidden
+set noerrorbells
+set signcolumn=yes
+set updatetime=100
 
 " Encoding
 set encoding=utf-8
@@ -66,7 +74,12 @@ set list
 " Search
 set hlsearch
 set incsearch
-" nnoremap <silent> <Esc><Esc> :let @/=""<CR>
+set ignorecase
+set smartcase
+nnoremap <silent> <Esc><Esc> :let @/=""<CR>
+
+" Clipboard
+set clipboard=unnamedplus
 
 " Theme and Styling
 set t_Co=256
@@ -123,7 +136,12 @@ nnoremap <leader>a :cclose<CR>
 autocmd FileType go nmap <leader>b  <Plug>(go-build)
 autocmd FileType go nmap <leader>r  <Plug>(go-run)
 
-" set spell spelllang=en_gb
+" Persistent undo
+set undofile
+set undodir=~/.vim/undodir
+
+set spell spelllang=en_gb
+hi SpellBad cterm=underline ctermfg=NONE ctermbg=NONE gui=undercurl guisp=red
 let g:ale_fix_on_save = 1
 let g:ale_completion_enabled = 1
 let g:ale_echo_msg_format = '[%linter%]% [code]% %s'
@@ -144,6 +162,7 @@ let g:ale_fixers = {
 \   ]
 \}
 let g:ale_linters= {
+\   'go': ['gopls', 'golangci-lint'],
 \   'python': ['pyright','ruff']
 \}
 let g:ale_python_auto_pipenv = 1