Add rofi config
This commit is contained in:
parent
efcef172a6
commit
f96e07612b
60
.vimrc
60
.vimrc
|
@ -1,18 +1,17 @@
|
||||||
set nocompatible
|
set nocompatible
|
||||||
|
syntax on
|
||||||
let VIMHOME = split(&rtp, ",")[0]
|
let VIMHOME = split(&rtp, ",")[0]
|
||||||
let $VIMHOME = VIMHOME
|
let $VIMHOME = VIMHOME
|
||||||
|
|
||||||
" vim-plug
|
" vim-plug
|
||||||
call plug#begin(VIMHOME."/plugs")
|
call plug#begin(VIMHOME."/plugs")
|
||||||
Plug 'lervag/vimtex'
|
" Plug 'OmniSharp/omnisharp-vim'
|
||||||
Plug 'posva/vim-vue'
|
Plug 'Valloric/YouCompleteMe'
|
||||||
Plug 'neovimhaskell/haskell-vim'
|
Plug 'vimwiki/vimwiki'
|
||||||
Plug 'nvie/vim-flake8'
|
Plug 'rhysd/vim-grammarous'
|
||||||
Plug 'roxma/nvim-yarp'
|
|
||||||
Plug 'roxma/vim-hug-neovim-rpc'
|
|
||||||
Plug 'ConradIrwin/vim-bracketed-paste'
|
Plug 'ConradIrwin/vim-bracketed-paste'
|
||||||
|
Plug 'NLKNguyen/papercolor-theme'
|
||||||
Plug 'Shougo/deoplete.nvim'
|
Plug 'Shougo/deoplete.nvim'
|
||||||
" Plug 'Valloric/YouCompleteMe'
|
|
||||||
Plug 'christoomey/vim-tmux-navigator'
|
Plug 'christoomey/vim-tmux-navigator'
|
||||||
Plug 'cohama/lexima.vim', {'do': 'sed -i \"s/has(.nvim.) && //\" autoload/lexima/insmode.vim'}
|
Plug 'cohama/lexima.vim', {'do': 'sed -i \"s/has(.nvim.) && //\" autoload/lexima/insmode.vim'}
|
||||||
Plug 'editorconfig/editorconfig-vim'
|
Plug 'editorconfig/editorconfig-vim'
|
||||||
|
@ -21,16 +20,23 @@ Plug 'hdima/python-syntax'
|
||||||
Plug 'jeetsukumaran/vim-buffergator'
|
Plug 'jeetsukumaran/vim-buffergator'
|
||||||
Plug 'kien/ctrlp.vim'
|
Plug 'kien/ctrlp.vim'
|
||||||
Plug 'kristijanhusak/vim-hybrid-material'
|
Plug 'kristijanhusak/vim-hybrid-material'
|
||||||
Plug 'neoclide/coc.nvim', {'branch': 'release'}
|
Plug 'lervag/vimtex'
|
||||||
Plug 'NLKNguyen/papercolor-theme'
|
" Plug 'neoclide/coc.nvim', {'branch': 'master', 'do': 'yarn install --frozen-lockfile'}
|
||||||
|
" Plug 'neoclide/coc.nvim', {'branch': 'release'}
|
||||||
|
Plug 'neovimhaskell/haskell-vim'
|
||||||
Plug 'nixprime/cpsm', {'do': './install.sh'}
|
Plug 'nixprime/cpsm', {'do': './install.sh'}
|
||||||
|
Plug 'nvie/vim-flake8'
|
||||||
Plug 'octol/vim-cpp-enhanced-highlight'
|
Plug 'octol/vim-cpp-enhanced-highlight'
|
||||||
Plug 'pangloss/vim-javascript'
|
Plug 'pangloss/vim-javascript'
|
||||||
|
Plug 'posva/vim-vue'
|
||||||
|
Plug 'roxma/nvim-yarp'
|
||||||
|
Plug 'roxma/vim-hug-neovim-rpc'
|
||||||
Plug 'tmux-plugins/vim-tmux'
|
Plug 'tmux-plugins/vim-tmux'
|
||||||
Plug 'tmux-plugins/vim-tmux-focus-events'
|
Plug 'tmux-plugins/vim-tmux-focus-events'
|
||||||
Plug 'tomtom/tcomment_vim'
|
Plug 'tomtom/tcomment_vim'
|
||||||
Plug 'vim-airline/vim-airline'
|
Plug 'vim-airline/vim-airline'
|
||||||
Plug 'vim-airline/vim-airline-themes'
|
Plug 'vim-airline/vim-airline-themes'
|
||||||
|
Plug 'vim-scripts/indentpython.vim'
|
||||||
call plug#end()
|
call plug#end()
|
||||||
|
|
||||||
let g:ycm_global_ycm_extra_conf = '~/.vim/.ycm_extra_conf.py'
|
let g:ycm_global_ycm_extra_conf = '~/.vim/.ycm_extra_conf.py'
|
||||||
|
@ -46,8 +52,13 @@ nnoremap k gk
|
||||||
|
|
||||||
" don't store .swp files in the file's own directory
|
" don't store .swp files in the file's own directory
|
||||||
" neither for .ext~ files
|
" neither for .ext~ files
|
||||||
set directory=/home/billie/.vim/tmp/
|
set directory=/home/user/.vim/tmp/
|
||||||
set backupdir=/home/billie/.vim/tmp/
|
set backupdir=/home/user/.vim/tmp/
|
||||||
|
|
||||||
|
" VimWiki
|
||||||
|
let g:vimwiki_key_mappings = { 'table_mappings': 0 }
|
||||||
|
let g:vimwiki_markdown_link_ext = 1
|
||||||
|
autocmd FileType vimwiki setlocal shiftwidth=2 softtabstop=2 expandtab
|
||||||
|
|
||||||
" Autoindent for filetype
|
" Autoindent for filetype
|
||||||
filetype plugin indent on
|
filetype plugin indent on
|
||||||
|
@ -101,6 +112,10 @@ nnoremap <leader><space> :noh<CR>
|
||||||
" Text wrapping
|
" Text wrapping
|
||||||
set lbr
|
set lbr
|
||||||
|
|
||||||
|
" Vimtex
|
||||||
|
|
||||||
|
let g:tex_flavor = 'latex'
|
||||||
|
|
||||||
" Tabs
|
" Tabs
|
||||||
if has("autocmd")
|
if has("autocmd")
|
||||||
filetype plugin indent on
|
filetype plugin indent on
|
||||||
|
@ -151,7 +166,8 @@ vnoremap u y
|
||||||
autocmd VimLeave * call system("xsel -ib", getreg('+'))
|
autocmd VimLeave * call system("xsel -ib", getreg('+'))
|
||||||
|
|
||||||
" Automatically remove trailing spaces
|
" Automatically remove trailing spaces
|
||||||
autocmd BufWritePre * :%s/\s\+$//e
|
let blacklist = ['vimwiki']
|
||||||
|
autocmd BufWritePre * if index(blacklist, &ft) < 0 | :%s/\s\+$//e
|
||||||
|
|
||||||
" Use deoplete.
|
" Use deoplete.
|
||||||
autocmd FileType python let g:deoplete#enable_at_startup = 1
|
autocmd FileType python let g:deoplete#enable_at_startup = 1
|
||||||
|
@ -182,9 +198,9 @@ Ext 'coc-snippets'
|
||||||
Ext 'coc-emoji'
|
Ext 'coc-emoji'
|
||||||
Ext 'coc-highlight'
|
Ext 'coc-highlight'
|
||||||
Ext 'coc-emmet'
|
Ext 'coc-emmet'
|
||||||
|
Ext 'coc-omnisharp'
|
||||||
Ext 'coc-vimtex'
|
Ext 'coc-vimtex'
|
||||||
Ext 'coc-json'
|
Ext 'coc-json'
|
||||||
Ext 'coc-tabnine'
|
|
||||||
Ext 'coc-java'
|
Ext 'coc-java'
|
||||||
|
|
||||||
delc Ext
|
delc Ext
|
||||||
|
@ -192,12 +208,12 @@ delc Ext
|
||||||
" Tab for completion
|
" Tab for completion
|
||||||
|
|
||||||
" use <tab> for trigger completion and navigate to the next complete item
|
" use <tab> for trigger completion and navigate to the next complete item
|
||||||
function! s:check_back_space() abort
|
" function! s:check_back_space() abort
|
||||||
let col = col('.') - 1
|
" let col = col('.') - 1
|
||||||
return !col || getline('.')[col - 1] =~ '\s'
|
" return !col || getline('.')[col - 1] =~ '\s'
|
||||||
endfunction
|
" endfunction
|
||||||
|
"
|
||||||
inoremap <silent><expr> <Tab>
|
" inoremap <silent><expr> <Tab>
|
||||||
\ pumvisible() ? "\<C-n>" :
|
" \ pumvisible() ? "\<C-n>" :
|
||||||
\ <SID>check_back_space() ? "\<Tab>" :
|
" \ <SID>check_back_space() ? "\<Tab>" :
|
||||||
\ coc#refresh()
|
" \ coc#refresh()
|
||||||
|
|
|
@ -0,0 +1,7 @@
|
||||||
|
configuration {
|
||||||
|
font: "SF Pro Rounded 15";
|
||||||
|
show-icons: true;
|
||||||
|
theme: "~/.config/rofi/material-ocean.rasi";
|
||||||
|
icon-theme: "Papirus";
|
||||||
|
kb-cancel: "Shift+Ctrl+Alt+F12,Escape,Alt+F1";
|
||||||
|
}
|
|
@ -0,0 +1,109 @@
|
||||||
|
/*
|
||||||
|
Copyright © Blacksuan19 @ 2020
|
||||||
|
part of material ocean colorscheme
|
||||||
|
licensed under GNU's GPL 3
|
||||||
|
*/
|
||||||
|
|
||||||
|
* {
|
||||||
|
background: #0f111a;
|
||||||
|
foreground: #f1f1f1;
|
||||||
|
selected: #0033a1;
|
||||||
|
selected-text: #ffffff;
|
||||||
|
}
|
||||||
|
|
||||||
|
window {
|
||||||
|
transparency: "real";
|
||||||
|
background-color: @background;
|
||||||
|
text-color: @foreground;
|
||||||
|
width: 1000px;
|
||||||
|
height: 500px;
|
||||||
|
}
|
||||||
|
|
||||||
|
prompt {
|
||||||
|
enabled: true;
|
||||||
|
padding: 10px 10px 15px 15px;
|
||||||
|
background-color: @background;
|
||||||
|
text-color: @foreground;
|
||||||
|
}
|
||||||
|
|
||||||
|
textbox-prompt-colon {
|
||||||
|
expand: false;
|
||||||
|
background-color: @background;
|
||||||
|
padding: 4px 0px 0px 6px;
|
||||||
|
}
|
||||||
|
|
||||||
|
inputbar {
|
||||||
|
children: [ textbox-prompt-colon, entry ];
|
||||||
|
background-color: @background;
|
||||||
|
text-color: @foreground;
|
||||||
|
expand: false;
|
||||||
|
border: 0px 0px 0px 0px;
|
||||||
|
border-radius: 0px;
|
||||||
|
border-color: @selected;
|
||||||
|
margin: 0px 0px 0px 0px;
|
||||||
|
padding: 0px 0px 4px 0px;
|
||||||
|
position: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
entry {
|
||||||
|
background-color: @background;
|
||||||
|
text-color: @foreground;
|
||||||
|
placeholder-color: @foreground;
|
||||||
|
expand: true;
|
||||||
|
horizontal-align: 0;
|
||||||
|
blink: true;
|
||||||
|
padding: 4px 0px 0px 4px;
|
||||||
|
font: "SF Pro Rounded 25";
|
||||||
|
}
|
||||||
|
|
||||||
|
case-indicator {
|
||||||
|
background-color: @background;
|
||||||
|
text-color: @foreground;
|
||||||
|
spacing: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
listview {
|
||||||
|
background-color: @background;
|
||||||
|
columns: 1;
|
||||||
|
spacing: 5px;
|
||||||
|
cycle: true;
|
||||||
|
dynamic: true;
|
||||||
|
layout: vertical;
|
||||||
|
}
|
||||||
|
|
||||||
|
mainbox {
|
||||||
|
background-color: @background;
|
||||||
|
children: [ inputbar, listview ];
|
||||||
|
spacing: 20px;
|
||||||
|
padding: 20px 15px 15px 15px;
|
||||||
|
}
|
||||||
|
|
||||||
|
element {
|
||||||
|
background-color: @background;
|
||||||
|
text-color: @foreground;
|
||||||
|
orientation: horizontal;
|
||||||
|
border-radius: 4px;
|
||||||
|
padding: 6px 6px 6px 6px;
|
||||||
|
}
|
||||||
|
|
||||||
|
element-text, element-icon {
|
||||||
|
background-color: inherit;
|
||||||
|
text-color: inherit;
|
||||||
|
}
|
||||||
|
|
||||||
|
element-icon {
|
||||||
|
size: 40px;
|
||||||
|
border: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
element-text {
|
||||||
|
padding: 16px 0px 0px 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
element selected {
|
||||||
|
background-color: @selected;
|
||||||
|
text-color: @selected-text;
|
||||||
|
border: 0px;
|
||||||
|
border-radius: 0px;
|
||||||
|
border-color: @selected;
|
||||||
|
}
|
Loading…
Reference in New Issue