random shit

master
Drake 2 years ago
parent c4db3a6a2b
commit 1d98b9725d

@ -1,3 +1,5 @@
vim9script
call plug#begin('~/.vim/plugged') call plug#begin('~/.vim/plugged')
Plug 'sainnhe/sonokai' Plug 'sainnhe/sonokai'
@ -5,7 +7,7 @@ Plug 'dstein64/vim-startuptime'
call plug#end() call plug#end()
" ASSORTED SHIT # ASSORTED SHIT
syntax on syntax on
set termguicolors set termguicolors
set mouse=a set mouse=a
@ -13,15 +15,15 @@ set number
set tabstop=4 set tabstop=4
set shiftwidth=4 set shiftwidth=4
" SONOKAI CONFIG # SONOKAI CONFIG
let g:sonokai_style = 'atlantis' g:sonokai_style = 'atlantis'
let g:sonokai_diagnostic_line_highlight = 1 g:sonokai_diagnostic_line_highlight = 1
let g:sonokai_diagnostic_virtual_text = 'colored' g:sonokai_diagnostic_virtual_text = 'colored'
let g:sonokai_current_word = 'underline' g:sonokai_current_word = 'underline'
let g:sonokai_better_performance = 1 g:sonokai_better_performance = 1
colorscheme sonokai colorscheme sonokai
" STATUSLINE SHIT # STATUSLINE SHIT
set laststatus=2 set laststatus=2
set statusline= set statusline=
set statusline+=%1* set statusline+=%1*
@ -44,30 +46,32 @@ hi User1 gui=bold cterm=bold guibg=#7ad5f1 guifg=black
hi User2 guifg=#7ad5f1 guibg=#2a2f38 hi User2 guifg=#7ad5f1 guibg=#2a2f38
hi User4 guibg=#2a2f38 guifg=white hi User4 guibg=#2a2f38 guifg=white
function! StatuslineMode() def g:StatuslineMode(): string
let l:mode=mode() var mode = mode()
if l:mode==#"n" if mode ==# "n"
return "NORMAL" return "NORMAL"
elseif l:mode==?"v" elseif mode ==? "v"
return "VISUAL" return "VISUAL"
elseif l:mode==#"i" elseif mode ==# "i"
return "INSERT" return "INSERT"
elseif l:mode==#"R" elseif mode ==# "R"
return "REPLACE" return "REPLACE"
elseif l:mode==?"s" elseif mode ==? "s"
return "SELECT" return "SELECT"
elseif l:mode==#"t" elseif mode ==# "t"
return "TERMINAL" return "TERMINAL"
elseif l:mode==#"c" elseif mode ==# "c"
return "COMMAND" return "COMMAND"
elseif l:mode==#"!" elseif mode ==# "!"
return "SHELL" return "SHELL"
else
return "UNKNOWN"
endif endif
endfunction enddef
function! CheckUserAndComplainOtherwise() def CheckUserAndComplainOtherwise()
if $USER=="root" if $USER == "root"
call input("You are running as root. Here be dragons! ") call input("You are running as root. Here be dragons! ")
endif endif
endfunction enddef
autocmd VimEnter * call CheckUserAndComplainOtherwise() autocmd VimEnter * call CheckUserAndComplainOtherwise()

@ -1,6 +1,7 @@
#Drake's Early Shit #Drake's Early Shit
#Apparently, P10k removes tty access, so we need to define it up here to fix that #Apparently, P10k removes tty access, so we need to define it up here to fix that
export GPG_TTY=$(tty) export GPG_TTY=$(tty)
[[ "$TERM_PROGRAM" == "vscode" ]] && . "$(code --locate-shell-integration-path zsh)"
SCRIPT_SOURCE=$(readlink -f ~/.zshrc) SCRIPT_SOURCE=$(readlink -f ~/.zshrc)
SCRIPT_SOURCE=${SCRIPT_SOURCE:a:h} SCRIPT_SOURCE=${SCRIPT_SOURCE:a:h}

Loading…
Cancel
Save