nixos-config/home/neovim/default.nix

57 lines
1.2 KiB
Nix
Raw Normal View History

2020-11-01 20:27:07 +00:00
{ config, pkgs, ... }:
2021-11-17 23:58:51 +00:00
let
lsp-colors = pkgs.vimUtils.buildVimPluginFrom2Nix {
pname = "lsp-colors.nvim";
version = "2021-10-22";
src = pkgs.fetchFromGitHub {
owner = "folke";
repo = "lsp-colors.nvim";
rev = "517fe3ab6b63f9907b093bc9443ef06b56f804f3";
sha256 = "vXX9/5hulIlDwE9ISZlTMxxrl+Jjyquagv5+AHmEA5c=";
fetchSubmodules = false;
};
meta.homepage = "https://github.com/folke/lsp-colors.nvim";
};
in
2020-11-01 20:27:07 +00:00
{
programs.neovim = {
enable = true;
vimAlias = true;
2022-01-10 18:10:58 +00:00
extraConfig = (builtins.replaceStrings
2022-02-13 18:58:00 +00:00
[ "{{CLANGDPATH}}" "{{JLSPATH}}" ]
[ "${pkgs.clang-tools}/bin/clangd" "${pkgs.java-language-server}/bin/java-language-server" ]
2022-01-10 18:10:58 +00:00
(builtins.readFile ./init.vim));
plugins = with pkgs.vimPlugins; [
editorconfig-vim
fzf-vim
vim-airline
vim-clang-format
vim-fish
vim-fetch
vim-nftables
vim-nix
vim-sensible
vim-toml
meson
gruvbox
2020-11-01 23:40:21 +00:00
2021-11-17 23:28:16 +00:00
nvim-lspconfig
nvim-compe
2021-11-17 23:58:51 +00:00
lsp-colors
];
2020-11-01 20:27:07 +00:00
};
2020-11-22 21:26:28 +00:00
2021-01-11 22:32:59 +00:00
home.sessionVariables.EDITOR = "nvim";
home.packages = with pkgs; [
2020-11-22 21:26:28 +00:00
nixpkgs-fmt
2021-11-17 23:28:16 +00:00
python3
python3Packages.ipython
2021-11-02 01:15:54 +00:00
python3Packages.pylint
2021-11-17 23:28:16 +00:00
nodePackages.pyright
2021-11-17 23:58:51 +00:00
rust-analyzer
rnix-lsp
2020-11-22 21:26:28 +00:00
];
2021-01-11 22:32:59 +00:00
2020-11-01 20:27:07 +00:00
}