Compare commits

...

7 Commits

Author SHA1 Message Date
Enrico Fasoli
27539eff01 updated neovim configuration 2015-10-13 11:11:38 +02:00
Enrico Fasoli
2a5daa6dda add slim theme 2015-10-08 20:28:02 +02:00
Enrico Fasoli
0b75eeb3ef fixed typo 2015-10-08 19:02:55 +02:00
Enrico Fasoli
d1b625e235 disable transmission 2015-10-08 18:52:38 +02:00
Enrico Fasoli
498ddd0739 update ip script 2015-10-08 18:52:02 +02:00
Enrico Fasoli
59122c7b77 improve bar 2015-10-04 23:50:12 +02:00
Enrico Fasoli
cec068a416 fix neovim and prezto 2015-10-04 23:49:57 +02:00
8 changed files with 73 additions and 13 deletions

58
.nvimrc
View File

@ -1,14 +1,36 @@
" Global settings
syntax on
set showcmd
set ruler
set wildmenu
set lazyredraw
set showmatch
set mouse=a
set nofoldenable
set backupdir=~/.config/neovim/backup/
set directory=~/.config/neovim/backup/
set number
set relativenumber
" Colors
highlight LineNr ctermfg=cyan
set t_Co=16
highlight Keyword ctermfg=06
highlight Define ctermfg=06
highlight Comment ctermfg=03
highlight Type ctermfg=08
highlight Operator ctermfg=05
highlight Identifier ctermfg=13
highlight Constant ctermfg=11
highlight Function ctermfg=01
highlight Include ctermfg=06
highlight Statement ctermfg=06
highlight String ctermfg=03
highlight Search ctermbg=14
highlight NonText ctermfg=00
highlight VertSplit ctermfg=08 cterm=none
highlight LineNr ctermfg=07
highlight Visual ctermbg=08 ctermfg=15
set fillchars+=vert:│
" Indent
set tabstop=2
@ -26,22 +48,46 @@ set rtp+=~/.config/neovim/bundle/Vundle.vim
call vundle#begin('~/.config/neovim/bundle')
Plugin 'VundleVim/Vundle.vim'
" Plugins
Plugin 'kien/ctrlp.vim'
Plugin 'itchyny/lightline.vim'
" Languages
Plugin 'kchmck/vim-coffee-script'
Plugin 'fatih/vim-go'
Plugin 'wting/rust.vim'
Plugin 'godlygeek/tabular' " dependency for markdown
Plugin 'plasticboy/vim-markdown'
Plugin 'jgertm/nix.vim'
call vundle#end()
filetype plugin indent on
syntax on
" CtrlP
let g:ctrlp_map = '<c-p>'
let g:ctrlp_cmd = 'CtrlP'
" StatusLine
" Markdown
set laststatus=2
set noshowmode
let s:p = {'normal': {}, 'inactive': {},
\'insert': {}, 'replace' : {},
\'visual': {}, 'tabline' : {}}
let g:vim_markdown_folding_disabled=1
let s:p.normal.left = [ [ 07, 14 ], [ 08, 00 ] ]
let s:p.insert.left = [ [ 07, 05 ], [ 14, 00 ] ]
let s:p.visual.left = [ [ 00, 03 ], [ 14, 00 ] ]
let s:p.replace.left = [ [ 00, 02 ], [ 14, 00 ] ]
let s:p.inactive.left = [ [ 12, 00 ], [ 15, 00 ] ]
let s:p.tabline.left = [ [ 14, 00 ] ]
let s:p.normal.right = [ [ 12, 00 ], [ 03, 00 ] ]
let s:p.tabline.right = [ [ 12, 00 ], [ 03, 00 ] ]
let s:p.inactive.right = [ [ 12, 00 ], [ 13, 00 ] ]
let s:p.normal.middle = [ [ 12, 00 ] ]
let s:p.inactive.middle = [ [ 12, 00 ] ]
let s:p.tabline.middle = [ [ 14, 00 ] ]
let s:p.tabline.tabsel = [ [ 14, 00 ] ]
let s:p.normal.error = [ [ 00, 05 ] ]
let s:p.normal.warning = [ [ 00, 02 ] ]
let g:lightline#colorscheme#default#palette = lightline#colorscheme#fill(s:p)

2
bin/myip Executable file
View File

@ -0,0 +1,2 @@
#!/bin/sh
curl http://canihazip.com/s

View File

@ -1,2 +0,0 @@
#!/bin/sh
rm -f /tmp/myip

View File

@ -16,7 +16,7 @@ bspc monitor HDMI-0 -d 6 7 8 9
# Set up bspwm theme
bspc config border_width 2
bspc window_gap 24
bspc config -m DVI-I-0 top_padding 36
bspc config -m DVI-I-0 top_padding 20
bspc config focused_border_color '#858585'
bspc config normal_border_color '#2e343D'
bspc config split_ratio 0.52
@ -25,4 +25,4 @@ bspc config gapless monocle true
bspc config focus_follows_pointer true
# Show desktop background
feh --no--fehbg --bg-center ~/Pictures/background.png
feh --no-fehbg --bg-center ~/Pictures/background.png

View File

@ -109,6 +109,10 @@
desktopManager.xterm.enable = false;
desktopManager.default = "none";
windowManager.default = "bspwm";
displayManager.slim.theme = pkgs.fetchurl {
url = "https://github.com/rnhmjoj/nix-slim/archive/0.2.0.tar.gz";
sha256 = "08m6ks6crdyr02ll50gy3vpn3rzq6rp5jm2bli526r432xacdmj1";
};
};
mpd = {
@ -139,7 +143,7 @@
};
transmission = {
enable = true;
enable = false;
settings = {
download-dir = "/mnt/Dati/Download/";
};

View File

@ -28,6 +28,11 @@ cp ./.Xresources ~/
mkdir -p ~/.config/neovim/backup
cp .nvimrc ~/
if [ ! -d "~/.config/neovim/bundle" ]; then
echo "Installing Vundle for NeoVim"
git clone https://github.com/VundleVim/Vundle.vim.git ~/.config/neovim/bundle/Vundle.vim
fi
# Tmux
cp .tmux.conf ~/

View File

@ -2,9 +2,14 @@
echo "Installing prezto"
if [ -z "$ZDOTDIR" ]; then
echo "ZDOTDIR not set."
exit 1
fi
mkdir -p $ZDOTDIR
git clone --recursive https://github.com/fazo96/prezto.git "${ZDOTDIR:-$HOME}/.zprezto"
git clone --recursive https://maxwell.ydns.eu:44333/fazo96/prezto.git "${ZDOTDIR:-$HOME}/.zprezto"
setopt EXTENDED_GLOB
for rcfile in "${ZDOTDIR:-$HOME}"/.zprezto/runcoms/^README.md(.N); do

View File

@ -92,5 +92,5 @@ buildBar () {
done
}
buildBar | lemonbar -p -g "1872x20+24+8" -B "$BLACK" -F "$GREY" -f -gohu-gohufont-medium-r-normal--14-100-100-100-c-80-iso10646-1
buildBar | lemonbar -p -g "1920x20" -B "$BLACK" -F "$GREY" -f -gohu-gohufont-medium-r-normal--14-100-100-100-c-80-iso10646-1