nvim_flake/nvim-lsp.nix

56 lines
1.1 KiB
Nix
Raw Normal View History

2023-07-07 12:44:05 +02:00
{pkgs ? import <nixpkgs> {}}: let
neovim = pkgs.neovim.override {
configure = {
customRC = ''
lua <<EOF
${luaRc}
EOF
'';
packages.myPlugins.start = with pkgs.vimPlugins; [
(nvim-treesitter.withPlugins (parsers: [
parsers.c
parsers.cpp
parsers.json
parsers.latex
parsers.lua
parsers.nix
parsers.python
parsers.query
parsers.rust
2023-07-07 12:44:05 +02:00
parsers.verilog
parsers.vimdoc
parsers.zig
]))
cmp-buffer
cmp-cmdline
cmp-nvim-lsp
cmp-nvim-ultisnips
cmp-path
colorizer
fugitive
2023-07-08 14:46:26 +02:00
fzf-lua
2023-07-07 12:44:05 +02:00
gruvbox
nvim-cmp
nvim-lspconfig
nvim-ts-rainbow
repeat
targets-vim
UltiSnips
vim-addon-nix
vim-signify
vim-slime
vim-snippets
zig-vim
];
};
};
# lua
luaRc = builtins.readFile ./vimrc.lua;
in
pkgs.runCommand "nvim-lsp" {} ''
mkdir -p $out/bin
2023-07-07 12:46:20 +02:00
ln -s ${neovim}/bin/nvim $out/bin/vim
2023-07-07 12:44:05 +02:00
''