nixos-config/home/neovim/default.nix

59 lines
1.3 KiB
Nix
Raw Normal View History

2022-11-16 21:14:06 +00:00
{ config, pkgs, pkgs-unstable, ... }:
2020-11-01 20:27:07 +00:00
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
2022-02-19 04:50:07 +00:00
gruvbox
meson
vim-airline
vim-clang-format
vim-fetch
2022-02-19 04:50:07 +00:00
vim-fish
vim-flatbuffers
vim-nftables
vim-nix
2022-02-19 04:50:07 +00:00
vim-protobuf
vim-sensible
vim-toml
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
2022-11-16 21:14:06 +00:00
pkgs-unstable.rust-analyzer
2021-11-17 23:58:51 +00:00
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
}