Basic vim config ported

This commit is contained in:
Cyryl Płotnicki 2019-06-30 20:14:55 +01:00
parent 27774c6330
commit d17f73dd06
3 changed files with 35 additions and 6 deletions

3
.vimrc.nixos Executable file
View file

@ -0,0 +1,3 @@
source ~/dev/dotfiles/.vimrc.plugins-settings
source ~/dev/dotfiles/.vimrc.settings
source ~/dev/dotfiles/.vimrc.keymap

View file

@ -74,6 +74,38 @@
shellAliases = { tmate = "tmux detach-client -E 'tmate;tmux'"; cat = "bat"; };
};
vim = {
enable = true;
extraConfig = builtins.readFile ~/dev/dotfiles/.vimrc.nixos;
plugins = [
"vim-gitgutter"
"vim-toml"
"vim-autoformat"
"editorconfig-vim"
"tabular"
"vim-colors-solarized"
"fzf-vim"
"ctrlp-vim"
"vim-nix"
"vim-startify"
"ack-vim"
"vim-markdown"
"rust-vim"
"nerdtree"
"vim-dispatch"
"deoplete-rust"
"deoplete-go"
"vim-fugitive"
"vim-sensible"
"vim-surround"
"vim-airline"
"vim-airline-themes"
"vim-dirdiff"
"nerdtree-git-plugin"
];
};
alacritty = {
enable = true;
settings = {

View file

@ -22,9 +22,6 @@ cd $DIR
git submodule update --init --recursive
#configs
ln -vfs "$DIR/.vim" ~/.
ln -vfs "$DIR/.ideavimrc" ~/.
ln -vfs "$DIR/.vimrc" ~/.vimrc
ln -vfs "$DIR/rvmrc" ~/.rvmrc
ln -vfs "$DIR/.hyper.js" ~/.hyper.js
ln -vfs "$DIR/.hyper_plugins" ~/.hyper_plugins
@ -117,9 +114,6 @@ if [[ -z $NO_GO ]]; then
echo "Installing fzf"
~/.fzf/install --64 --all
fi
echo "Installing Vim plugins"
echo "\n" | vim +PlugClean! +qa
echo "\n" | vim +PlugInstall! +qa
GOPATH="$HOME/go"
export GOPATH=`realpath "$GOPATH"`