Browse Source

Working on lightline

main
Yiğit Çolakoğlu 4 years ago
parent
commit
52654cdbc3
18 changed files with 3824 additions and 45 deletions
  1. +4
    -3
      .gitsecret/paths/mapping.cfg
  2. +1
    -0
      config/.gitignore
  3. BIN
      config/calcurse/caldav/config.secret
  4. +4
    -0
      config/coc/extensions/.snyk
  5. +14
    -0
      config/coc/extensions/package.json
  6. +3746
    -0
      config/coc/extensions/yarn.lock
  7. +1
    -1
      config/htop/htoprc
  8. BIN
      config/isync/mbsyncrc.secret
  9. BIN
      config/msmtp/config.secret
  10. BIN
      config/nextcloud/nextcloud.secret
  11. BIN
      config/spotifyd/spotifyd.conf.secret
  12. +0
    -18
      config/vdirsyncer/config
  13. +29
    -11
      config/vim/vimrc
  14. +1
    -0
      config/zsh/.zshrc
  15. +12
    -0
      config/zsh/cmds
  16. BIN
      config/zsh/secret.secret
  17. +0
    -2
      local/bin/status-bar/time
  18. +12
    -10
      local/share/vim/plugin/plugins.vim

+ 4
- 3
.gitsecret/paths/mapping.cfg View File

@ -1,7 +1,8 @@
config/msmtp/config:529c5ae169a81f528ece6356c2bfb23f20af93619386aa018f28fab9505271ec
config/isync/mbsyncrc:65eec91b162f829575c2cc4b2428faa90eb71f3f79ba779bcfe70712f161cabe
config/calcurse/caldav/config:15d288e4edcbb85da765080fcdc7d25815cf2e22854002af5ea5ca2b4c4c7955
config/calcurse/caldav/config:deb0fa27c7b788836034d168b2f5f401caeb9ec35dd9bd5913cff3c493c15b35
config/zsh/secret:6a6b4e0d168adcfbbf31c969598c6897d6637efebc3ed3b34e1e0a5e0afed9af
config/nextcloud/nextcloud:1ee8feae4ac43c1e27178a5114374ff0afed84a1fd558a12d91e5409f77efef1
config/nextcloud/nextcloud:15de37aa910734dd275f2a71fc292f1f84951bc8a57d8b1eee26b2a1dcf66c6d
config/spotifyd/spotifyd.conf:2365689856e64f966846c0e33b5fc31f3a3a1a571e4e2ca65bebfd660f8e83cf
config/wakatime/.wakatime.cfg:
config/wakatime/.wakatime.cfg:e306146d45036c38f15aa9a817fc172bdca3c4c9d9ed3c4f6fe1d8d93d783d78
config/vdirsyncer/config:66055a713d4985c168a40cd1c07debacb76316a45f4b638c1aaf8c61f7515978

+ 1
- 0
config/.gitignore View File

@ -39,4 +39,5 @@
!wgetrc
!X11
!zathura
!coc
!zsh

BIN
config/calcurse/caldav/config.secret View File


+ 4
- 0
config/coc/extensions/.snyk View File

@ -0,0 +1,4 @@
# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities.
version: v1.19.0
ignore: {}
patch: {}

+ 14
- 0
config/coc/extensions/package.json View File

@ -0,0 +1,14 @@
{
"dependencies": {
"coc-css": ">=1.2.6",
"coc-html": ">=1.4.1",
"coc-java": ">=1.5.3",
"coc-jedi": ">=0.25.2",
"coc-json": ">=1.3.4",
"coc-markdownlint": ">=1.11.1",
"coc-tailwindcss": ">=0.7.0",
"coc-tsserver": ">=1.6.8",
"coc-vetur": ">=1.2.4",
"coc-vimtex": ">=1.0.4"
}
}

+ 3746
- 0
config/coc/extensions/yarn.lock
File diff suppressed because it is too large
View File


+ 1
- 1
config/htop/htoprc View File

@ -1,7 +1,7 @@
# Beware! This file is rewritten by htop when settings are changed in the interface.
# The parser is also very primitive, and not human-friendly.
fields=0 48 17 18 38 39 40 2 46 47 49 1
sort_key=46
sort_key=47
sort_direction=1
tree_sort_key=47
tree_sort_direction=1


BIN
config/isync/mbsyncrc.secret View File


BIN
config/msmtp/config.secret View File


BIN
config/nextcloud/nextcloud.secret View File


BIN
config/spotifyd/spotifyd.conf.secret View File


+ 0
- 18
config/vdirsyncer/config View File

@ -1,18 +0,0 @@
[general]
status_path = "~/.cache/vsync-status/"
[pair nextcloud_contacts]
a = "nx_contacts_local"
b = "nx_contacts_remote"
collections = ["from a", "from b"]
[storage nx_contacts_local]
type = "filesystem"
path = "~/.local/share/card/contacts"
fileext = ".vcf"
[storage nx_contacts_remote]
type = "carddav"
url = "https://drive.yigitcolakoglu.com/"
username = "yigitcolakoglu"
password = "@Ygtclksbl12!"

+ 29
- 11
config/vim/vimrc View File

@ -1,3 +1,4 @@
" XDG Base Directory Specification
set runtimepath^=$XDG_CONFIG_HOME/vim
set runtimepath+=$XDG_DATA_HOME/vim
set runtimepath+=$XDG_CONFIG_HOME/vim/after
@ -17,6 +18,7 @@ let s:MRU_File = $XDG_CACHE_HOME."/vim/mru"
if !has('nvim') | set viminfofile=$XDG_CACHE_HOME/vim/viminfo | endif
source ~/.local/share/vim/plugin/plugins.vim
" Set leader
@ -32,7 +34,8 @@ map <Leader>gs :Gstatus<CR>
map <Leader>h :History<CR>
" CtrlP use FZF (faster!)
nnoremap <C-p> :Files<Cr>
nnoremap <C-p> :Files<CR>
nnoremap <leader>b :Buffers<CR>
noremap <leader>u :w<Home>silent <End> !urlview<CR>
syntax on
@ -60,13 +63,24 @@ set nobackup nowritebackup noswapfile " Turn off backup files
set noerrorbells novisualbell " Turn off visual and audible bells
set expandtab shiftwidth=2 tabstop=2 " Two spaces for tabs everywhere
set history=500
" set hlsearch " Highlight search results
set hidden " Save buffers automatically
set ignorecase smartcase " Search queries intelligently set case
set incsearch " Show search results as you type
set timeoutlen=1000 ttimeoutlen=0 " Remove timeout when hitting escape
set showcmd " Show size of visual selection
set cmdheight=2
set t_Co=256
set clipboard=unnamedplus
set shortmess+=c
set updatetime=300
" Use tab for trigger completion with characters ahead and navigate.
" Use command ':verbose imap <tab>' to make sure tab is not mapped by other plugin.
inoremap <silent><expr> <TAB>
\ pumvisible() ? "\<C-n>" :
\ <SID>check_back_space() ? "\<TAB>" :
\ coc#refresh()
inoremap <expr><S-TAB> pumvisible() ? "\<C-p>" : "\<C-h>"
" Persistent undo
set undodir=~/.local/share/vim/undo/
@ -84,7 +98,6 @@ set wildignore+=*/node_modules/
"-------------------------------------------------------------------------------
" Interface
"-------------------------------------------------------------------------------
set number " Enable line numbers
set scrolloff=5 " Leave 5 lines of buffer when scrolling
set sidescrolloff=10 " Leave 10 characters of horizontal buffer when scrolling
@ -101,21 +114,20 @@ if (has("termguicolors"))
endif
let g:material_style='oceanic'
let g:material_theme_style='ocean-community'
let g:material_style='ocean'
set background=dark
try
colorscheme vim-material
colorscheme material
catch /^Vim\%((\a\+)\)\=:E185/
colorscheme default
endtry
let g:airline_theme='material'
" Showcase comments in italics
highlight Comment cterm=italic gui=italic
" Open most recently used files on start
" autocmd VimEnter * Mru .
" Easy tab navigation
nnoremap <C-Left> :tabprevious<CR>
nnoremap <C-Right> :tabnext<CR>
@ -135,6 +147,8 @@ let g:go_fmt_command = "goimports"
" Find/replace
vnoremap <C-r> "hy:%s/<C-r>h//g<left><left><left>
" Disable highlight
nnoremap <leader>e :noh<CR>
" let g:auto_save = 1 " enable AutoSave on Vim startup
@ -154,7 +168,6 @@ let g:Tlist_WinWidth = 40
" Syntastic max file size for python
let g:syntastic_python_pylint_post_args="--max-line-length=120"
"-------------------------------------------------------------------------------
" Neovim-specific configurations
"-------------------------------------------------------------------------------
@ -163,6 +176,7 @@ if has('nvim')
let $NVIM_TUI_ENABLE_TRUE_COLOR=1
set termguicolors
" Fix vim-tmux-navigator <C-h> https://git.io/viGRU
nmap <BS> <C-W>h
@ -171,10 +185,13 @@ if has('nvim')
endif
command! -complete=file -nargs=1 Rpdf :r !pdftotext -nopgbrk <q-args> - |fmt -csw78
" Don't clear clipboard on exit
autocmd VimLeave * call system("xsel -ib", getreg('+'))
" Useful for GDB debugging
packadd termdebug
" Use skeleton files
if has("autocmd")
augroup templates
autocmd BufNewFile main.* silent! execute '0r ~/.local/share/vim/templates/skeleton-main.'.expand("<afile>:e")
@ -184,3 +201,4 @@ if has("autocmd")
autocmd BufWinLeave *.tex !texclear %:p
endif

+ 1
- 0
config/zsh/.zshrc View File

@ -15,6 +15,7 @@ compinit
compinit -d $XDG_CACHE_HOME/zsh/zcompdump-$ZSH_VERSION
[[ ! -d "$XDG_DATA_HOME"/zsh/history ]] || source "$XDG_DATA_HOME"/zsh/history
HISTFILE="$XDG_DATA_HOME"/zsh/history
HISTSIZE=100000
SAVEHIST=100000


+ 12
- 0
config/zsh/cmds View File

@ -108,6 +108,18 @@ tmate-pair() {
tmate -S "$TMATE_SOCKET_LOCATION" attach-session -t "$TMATE_PAIR_NAME"
}
genccls() {
cat > .ccls << EOF
-I
../include
-I
../vendor/include
-std=c++14
-stdlib=libc++
-fPIC
EOF
}
# Close the pair because security
tmate-unpair() {
if [ -e "$TMATE_SOCKET_LOCATION" ]; then


BIN
config/zsh/secret.secret View File


+ 0
- 2
local/bin/status-bar/time View File

@ -4,8 +4,6 @@ icon=
cmd=$(date +"%R")
#echo "$ifg $icon $tfg$cmd"
echo -n "^c#0f111a^^b#bf616a^ $icon $cmd ^d^"
~/.local/bin/daily-update & # update wallpaper as well

+ 12
- 10
local/share/vim/plugin/plugins.vim View File

@ -1,16 +1,17 @@
call plug#begin('~/.local/share/vim/plugged')
" Themes
"
Plug 'hzchirs/vim-material'
" Look & Feel
Plug 'kaicataldo/material.vim'
Plug 'itchyny/lightline.vim'
Plug 'mengelbrecht/lightline-bufferline'
Plug 'ryanoasis/vim-devicons'
Plug 'kyazdani42/nvim-web-devicons' " lua
" Addons
Plug 'scrooloose/nerdtree'
"Plug 'yegappan/mru'
Plug 'alvan/vim-closetag'
Plug 'vim-scripts/vim-auto-save'
Plug 'airblade/vim-gitgutter'
"Plug 'ervandew/supertab'
Plug 'tpope/vim-rhubarb'
Plug 'tpope/vim-repeat'
Plug 'tpope/vim-bundler'
@ -23,19 +24,19 @@ Plug 'blarghmatey/split-expander'
Plug 'farmergreg/vim-lastplace'
Plug 'jlanzarotta/bufexplorer'
Plug 'jeffkreeftmeijer/vim-numbertoggle'
Plug 'vigoux/LanguageTool.nvim'
Plug 'dpelle/vim-LanguageTool'
"Plug 'fatih/vim-go', { 'do': ':GoUpdateBinaries' }
Plug 'sheerun/vim-polyglot'
Plug 'M4R7iNP/vim-inky'
Plug 'vim-airline/vim-airline'
Plug 'ycm-core/YouCompleteMe', { 'do': './install.py' }
" Plug 'ycm-core/YouCompleteMe', { 'do': './install.py' }
Plug 'neoclide/coc.nvim', {'branch': 'release'}
Plug 'vim-scripts/indentpython.vim'
Plug 'frazrepo/vim-rainbow'
Plug 'preservim/nerdcommenter'
Plug 'mileszs/ack.vim'
Plug 'yegappan/taglist'
Plug 'ryanoasis/vim-devicons'
Plug 'puremourning/vimspector'
Plug 'lervag/vimtex'
Plug 'wakatime/vim-wakatime'
@ -70,7 +71,8 @@ Plug 'leafgarland/typescript-vim'
Plug 'arrufat/vala.vim'
" Syntax errors
Plug 'vim-syntastic/syntastic'
" Plug 'vim-syntastic/syntastic'
Plug 'dense-analysis/ale'
Plug 'ntpeters/vim-better-whitespace'
" Git support


Loading…
Cancel
Save