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

nvim; add hledger

This commit is contained in:
Kierán Meinhardt
2019-01-03 00:43:21 +01:00
parent 5fa78e451f
commit af03c7c915
3 changed files with 14 additions and 3 deletions

View File

@@ -94,7 +94,7 @@ let vim_conf = ''
autocmd bufnewfile,bufread *.rust :packadd rust-vim deoplete-rust
autocmd bufnewfile,bufread *.tex :packadd vimtex | set filetype=tex
autocmd bufnewfile,bufread *.ts :packadd vim-typescript
autocmd bufnewfile,bufread *.graphql :packadd vim-graphql
autocmd bufnewfile,bufread *.journal :packadd vim-ledger | set filetype=ledger shiftwidth=4
autocmd bufnewfile,bufread config set filetype=conf
autocmd filetype haskell :packadd Hoogle
autocmd filetype haskell set formatprg=hindent
@@ -138,7 +138,7 @@ let vim_conf = ''
"endif
'';
in {
environment.variables.EDITOR = pkgs.lib.mkForce "vim";
environment.variables.EDITOR = pkgs.lib.mkForce "nvim";
environment.shellAliases.vi = "nvim";
environment.shellAliases.view = "nvim -R";
@@ -182,6 +182,15 @@ in {
typescript-vim
vim-javascript
vim-nix
(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 {

View File

@@ -2,6 +2,7 @@
let
scripts = import ../dot/scripts.nix { inherit pkgs lib; };
daybook = pkgs.callPackage ../packages/daybook.nix {};
unstable = import <nixos-unstable> {};
in with pkgs;
{
nixpkgs.config.allowUnfree = true;
@@ -154,6 +155,7 @@ in with pkgs;
maxima
] ++ [ # shell
daybook
unstable.hledger
jo
jq
memo

View File

@@ -1,5 +1,5 @@
let
flip = scheme: scheme // {
flip = scheme: scheme // rec {
background = scheme.foreground;
foreground = scheme.background;
fadeColor = background;