diff options
author | Linnnus <[email protected]> | 2023-09-05 20:38:32 +0200 |
---|---|---|
committer | Linnnus <[email protected]> | 2023-09-05 20:38:32 +0200 |
commit | 80006f82905f2567c895cf8737aaf3bf07f9668b (patch) | |
tree | aaacfc4f4327759157429c4b60b6b4a2c659c428 /use-cases/development/neovim.nix | |
parent | 7d4ab89f1e6264e124109bf25eafaafdf1aec02a (diff) |
Lots of stuff
Diffstat (limited to 'use-cases/development/neovim.nix')
-rw-r--r-- | use-cases/development/neovim.nix | 60 |
1 files changed, 0 insertions, 60 deletions
diff --git a/use-cases/development/neovim.nix b/use-cases/development/neovim.nix deleted file mode 100644 index fb7acf3..0000000 --- a/use-cases/development/neovim.nix +++ /dev/null @@ -1,60 +0,0 @@ - -# This file contains the HM configuration options for Neovim for the user -# 'linus'. Don't know him. - -{ pkgs, lib, ... }: - -{ - programs.neovim = { - enable = true; - - # Wrap neovim with LSP dependencies. - # TODO: Build fails with permission error. What? I hate computers... - # package = - # let - # base = pkgs.neovim-unwrapped; - # deps = with pkgs; [ pyright ]; - # neovim' = pkgs.runCommandLocal "neovim-with-deps" { - # buildInputs = [ pkgs.makeWrapper ]; - # } '' - # mkdir $out - # # Link every top-level folder from pkgs.hello to our new target - # ln -s ${base}/* $out - # # Except the bin folder - # rm $out/bin - # mkdir $out/bin - # # We create the bin folder ourselves and link every binary in it - # ln -s ${base}/bin/* $out/bin - # # Except the nvim binary - # rm $out/bin/nvim - # # Because we create this ourself, by creating a wrapper - # makeWrapper ${base}/bin/nvim $out/bin/nvim \ - # --prefix PATH : ${lib.makeBinPath deps} - # ''; - # in - # neovim'; - - plugins = with pkgs.vimPlugins; [ - { - plugin = nvim-lspconfig; - type = "lua"; - config = '' - local lspconfig = require("lspconfig"); - lspconfig.pyright.setup { } - ''; - } - ]; - - # Typing `vi`, `vim`, or `vimdiff` will also run neovim. - viAlias = true; - vimAlias = true; - vimdiffAlias = true; - }; - - # Set Neovim as the default editor. - home.sessionVariables.EDITOR = "nvim"; - home.sessionVariables.VISUAL = "nvim"; - - # Use neovim as man pager. - home.sessionVariables.MANPAGER = "nvim +Man!"; -} |