1
0
mirror of https://github.com/kmein/niveum synced 2026-03-16 10:11:08 +01:00

vim: improve tooling

This commit is contained in:
Kierán Meinhardt
2019-03-22 13:42:12 +01:00
parent 1460818ecb
commit 1d38af20b7
7 changed files with 271 additions and 271 deletions

View File

@@ -1,10 +1,6 @@
{ pkgs, config, ... }:
let vimConfig = import ../dot/vim.nix { inherit config pkgs; };
in {
environment.variables.EDITOR = pkgs.lib.mkForce "nvim";
environment.shellAliases.vi = "nvim";
environment.shellAliases.view = "nvim -R";
programs.nano.nanorc = ''
set autoindent
set boldtext
@@ -14,17 +10,89 @@ in {
set tabstospaces
'';
environment.variables.EDITOR = pkgs.lib.mkForce "nvim";
environment.shellAliases.vi = "nvim";
environment.shellAliases.vim = "nvim";
environment.shellAliases.view = "nvim -R";
environment.systemPackages = [pkgs.nvim];
nixpkgs.config.packageOverrides = pkgs: {
nvim = pkgs.neovim.override {
configure = {
customRC = vimConfig.vimrc;
customRC = builtins.readFile ../dot/vimrc;
packages.nvim = with pkgs.vimPlugins; {
start = vimConfig.startPackages;
opt = vimConfig.optPackages;
start = with pkgs.vimPlugins; [
ale
deoplete-nvim
fzf-vim
fzfWrapper
supertab
tabular
vim-abolish
vim-airline vim-airline-themes
vim-commentary
vim-eunuch
vim-fugitive
vim-gitgutter
vim-pandoc vim-pandoc-after vim-pandoc-syntax
vim-repeat
vim-sensible
vim-startify
vim-surround
];
opt = [
csv
deoplete-jedi
deoplete-rust
dhall-vim
elm-vim
haskell-vim
idris-vim
rust-vim
typescript-vim
vim-javascript
vim-nix
vimtex
(pkgs.vimUtils.buildVimPluginFrom2Nix {
name = "vim-ledger";
src = pkgs.fetchFromGitHub {
owner = "ledger";
repo = "vim-ledger";
rev = "6eb3bb21aa979cc295d0480b2179938c12b33d0d";
sha256 = "0rbwyaanvl2bqk8xm4kq8fkv8y92lpf9xx5n8gw54iij7xxhnj01";
};
})
(pkgs.vimUtils.buildVimPluginFrom2Nix {
name = "vim-fsharp";
src = pkgs.fetchFromGitHub {
owner = "fsharp";
repo = "vim-fsharp";
rev = "627db7d701747e8fd7924b6505c61e16a369fb72";
sha256 = "00hhgn2p54faysx1ddccyhl9jnvddgxsczhv0np3mgzza6ls4838";
};
})
(pkgs.vimUtils.buildVimPluginFrom2Nix {
name = "emmet-vim";
src = pkgs.fetchFromGitHub {
owner = "mattn";
repo = "emmet-vim";
rev = "d698f1658770ca5fa58c87e80421c8d65bbe9065";
sha256 = "0vl4267hh8g1vkvc3awlqyypgz4m1r43d47sldl80yamiafiviaj";
};
})
(pkgs.vimUtils.buildVimPluginFrom2Nix {
name = "ghcid";
src = "${(pkgs.fetchFromGitHub {
owner = "ndmitchell";
repo = "ghcid";
rev = "5288801e7f046c42972527cd94171ce893ba91cf";
sha256 = "0dgxsl1dci6w3x662c7z1zw8yvfnch4ymhsvx29n7jkgqmcy1lki";
}).out}/plugins/nvim";
})
];
};
};
};
};
environment.systemPackages = [pkgs.nvim];
}

View File

@@ -129,6 +129,7 @@ in with pkgs;
(executables haskellPackages.pandoc-citeproc)
(executables haskellPackages.patat)
asciidoctor
proselint
] ++ [ # programming
vscode
tokei
@@ -142,8 +143,10 @@ in with pkgs;
(executables haskellPackages.cabal-install)
(executables haskellPackages.ghcid)
(executables haskellPackages.hakyll)
(executables haskellPackages.brittany)
(executables haskellPackages.hfmt)
(executables haskellPackages.hasktags)
(executables haskellPackages.hindent)
# (executables haskellPackages.hindent)
(executables haskellPackages.pointfree)
(executables haskellPackages.pointful)
(executables haskellPackages.hlint)
@@ -159,10 +162,13 @@ in with pkgs;
nodePackages.prettier
ocaml
python3
python36Packages.black
python36Packages.flake8
python3Packages.black
# python3Packages.yapf
python3Packages.flake8
python3Packages.jedi
ruby
rustup
# rustracer
scala
shellcheck
] ++ [ # media
@@ -194,6 +200,7 @@ in with pkgs;
jo
memo
par
fzf
pass
qrencode
sncli

View File

@@ -50,7 +50,7 @@ in {
setopt INTERACTIVE_COMMENTS CORRECT
setopt MULTIOS
setopt AUTO_NAME_DIRS
setopt CDABLE_VARS
setopt AUTOCD CDABLE_VARS
setopt HIST_IGNORE_ALL_DUPS
setopt VI
unsetopt NOMATCH