Compare commits
8 Commits
308940981f
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| b0c5edc100 | |||
| f8fe872aff | |||
| 3900d6e89d | |||
| a03739b204 | |||
| e8daa5f7f7 | |||
| 4df4be69b7 | |||
| 5a9d8f991d | |||
|
|
4b4fcd7e0a |
@@ -19,6 +19,7 @@ alias cura="cura5 -platformtheme gtk3"
|
||||
alias cp="cp -iv"
|
||||
alias mv="mv -iv"
|
||||
alias rm="rm -vI"
|
||||
alias vim="nvim"
|
||||
|
||||
# User lfcd by default (it should exist), fall back
|
||||
# to ranger if lfcd isn't found. IDK why you wouldn't
|
||||
|
||||
@@ -25,7 +25,6 @@ set tabstop=4 shiftwidth=4 smarttab
|
||||
highlight Comment ctermfg=Grey
|
||||
nnoremap <silent> <leader>p :split +term <CR>
|
||||
|
||||
|
||||
" =============== NERDTree ================================================
|
||||
" Toggle file browser
|
||||
nnoremap <silent> <leader>e :NERDTreeToggle<CR>
|
||||
@@ -37,7 +36,7 @@ let g:onedark_config = {
|
||||
colorscheme onedark
|
||||
hi CocFloating guibg=#151515 guifg=clear
|
||||
hi Pmenu guibg=#151515 guifg=clear
|
||||
hi @parameter guifg=#ed6215
|
||||
" hi @parameter guifg=#ed6215
|
||||
hi CursorColumn guibg=#e2c792 guifg=#232326
|
||||
|
||||
" =============== NERDTree Config ================================================
|
||||
@@ -63,16 +62,16 @@ endfunction
|
||||
autocmd CursorHold * silent call CocActionAsync('highlight')
|
||||
|
||||
" coc rename
|
||||
nnoremap <silent> <leader>r <Plug>(coc-rename)
|
||||
nmap <leader>r <Plug>(coc-rename)
|
||||
" Jump between references and definiton
|
||||
nnoremap <silent> <C-k> :call CocActionAsync('jumpReferences')<CR>
|
||||
nnoremap <silent> K :call CocActionAsync('jumpDefinition')<CR>
|
||||
nnoremap <leader>j :call CocActionAsync('jumpReferences')<CR>
|
||||
nnoremap <leader>k :call CocActionAsync('jumpDefinition')<CR>
|
||||
" show help menu
|
||||
nnoremap <C-u> :call CocActionAsync('codeAction', 'cursor')<CR>
|
||||
|
||||
nnoremap <leader>d :call CocActionAsync('codeAction', 'cursor')<CR>
|
||||
nnoremap <leader>a :call CocActionAsync('runCommand', 'editor.action.formatDocument')<CR>
|
||||
|
||||
" Show Documentation
|
||||
nnoremap <silent> J :call ShowDocumentation()<CR>
|
||||
nnoremap <leader>f :call ShowDocumentation()<CR>
|
||||
function! ShowDocumentation() " Show hover when provider exists, fallback to vim's builtin behavior.
|
||||
if CocAction('hasProvider', 'hover')
|
||||
call CocActionAsync('definitionHover')
|
||||
|
||||
@@ -1,3 +1,2 @@
|
||||
#!/bin/bash
|
||||
|
||||
paplay /usr/share/sounds/freedesktop/stereo/complete.oga
|
||||
pw-play /usr/share/sounds/freedesktop/stereo/complete.oga
|
||||
|
||||
2
.local/bin/brightness
Executable file
2
.local/bin/brightness
Executable file
@@ -0,0 +1,2 @@
|
||||
#!/bin/bash
|
||||
xrandr | grep " connected" | awk '{print $1}' | xargs -I% xrandr --output % --brightness $1
|
||||
@@ -1,6 +1,8 @@
|
||||
#!/bin/bash
|
||||
# Adapted from LinuxConfig.org
|
||||
# GNU GPL v3.0+
|
||||
|
||||
# cmds build into bash: echo, cd
|
||||
CMDS="bash clear mkdir touch mv rm ls grep cat vim"
|
||||
|
||||
USER=$1
|
||||
@@ -9,7 +11,7 @@ CMDS=($CMDS) # convert to array
|
||||
if ! id "$USER" 2&>/dev/null; then
|
||||
echo 'INFO: User not found'
|
||||
echo 'Creating...'
|
||||
useradd --shell /usr/bin/bash $USER
|
||||
useradd --create-home --shell /usr/bin/bash $USER
|
||||
echo "Password for $USER:"
|
||||
passwd $USER
|
||||
fi
|
||||
|
||||
@@ -2,3 +2,4 @@
|
||||
|
||||
tar cvf $1.tar $1
|
||||
gzip --best $1.tar
|
||||
rm $1.tar
|
||||
|
||||
@@ -7,3 +7,7 @@ sh -c 'curl -fLo "${XDG_DATA_HOME:-$HOME/.local/share}"/nvim/site/autoload/plug.
|
||||
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
|
||||
```
|
||||
otherwise just copy the .local and .config folders into your system's
|
||||
|
||||
## Coc plugins
|
||||
* coc-pyright
|
||||
* coc-rust-analyzer
|
||||
Reference in New Issue
Block a user