nvim_flake/nvim-lsp.nix

73 lines
1.5 KiB
Nix
Raw Permalink 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
'';
2023-10-31 21:20:26 +01:00
packages.myPlugins.start = with pkgs.vimPlugins; [
(nvim-treesitter.withPlugins (parsers: [
parsers.c
parsers.cpp
parsers.go
parsers.json
parsers.latex
parsers.lua
parsers.nix
parsers.python
parsers.query
parsers.rust
parsers.verilog
parsers.vimdoc
parsers.zig
]))
cmp-buffer
cmp-cmdline
cmp-nvim-lsp
cmp-nvim-ultisnips
cmp-path
colorizer
editorconfig-nvim
fugitive
fzf-lua
gruvbox
nvim-cmp
nvim-lspconfig
rainbow-delimiters-nvim
2023-10-31 21:20:26 +01:00
repeat
targets-vim
UltiSnips
vim-addon-nix
vim-signify
vim-slime
vim-snippets
zig-vim
];
nativeBuildInputs = [
pkgs.alejandra
pkgs.ccls
pkgs.gopls
pkgs.luaformatter
pkgs.nixd
pkgs.pyright
pkgs.rust-analyzer
pkgs.sumneko-lua-language-server
pkgs.svls
pkgs.texlab
pkgs.tree-sitter
pkgs.verible
pkgs.zls
];
2023-07-07 12:44:05 +02:00
};
};
# 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
''