From 13bbcd5a5feffa4a91f4e4068e68e9baf2f90223 Mon Sep 17 00:00:00 2001 From: Minijackson Date: Wed, 12 May 2021 20:54:32 +0200 Subject: vim: better config with lua, with some dev config --- usecases/desktop/development.nix | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 usecases/desktop/development.nix (limited to 'usecases') diff --git a/usecases/desktop/development.nix b/usecases/desktop/development.nix new file mode 100644 index 0000000..022482d --- /dev/null +++ b/usecases/desktop/development.nix @@ -0,0 +1,39 @@ +inputs: + +{ config, pkgs, ... }: + +let + inherit (pkgs.unstable) + clang-tools + elixir_ls + rust-analyzer-unwrapped + + vimPlugins; + + inherit (pkgs.unstable.python3Packages) python-language-server; + +in +{ + users.extraUsers.minijackson.packages = with pkgs; [ + rr + rtags + gcc + clang + clang-tools + ]; + + vim = { + extraPlugins = with vimPlugins; [ + nvim-lspconfig + rust-tools-nvim + ]; + luaConfig = builtins.readFile ../../dotfiles/vim-dev.lua; + + variables = { + clangd_path = "'${clang-tools}/bin/clangd'"; + elixirls_path = "'${elixir_ls}/bin/elixir-ls'"; + pyls_path = "'${python-language-server}/bin/pyls'"; + rust_analyzer_path = "'${rust-analyzer-unwrapped}/bin/rust-analyzer'"; + }; + }; +} -- cgit v1.2.3