nvim-lsp: create nvim LSP plugin

This commit is contained in:
Pedro Alves 2021-02-01 15:54:53 +00:00
parent 9c13cb407b
commit ba79ba0652
7 changed files with 134 additions and 4 deletions

View file

@ -0,0 +1,18 @@
{ pkgs, config, lib, ... }:
with lib;
let
cfg = config.programs.nixvim.plugins.lsp.servers.rust-analyzer;
in
{
options = {
programs.nixvim.plugins.lsp.servers.rust-analyzer = {
enable = mkEnableOption "Enable rust-analyzer, for Rust.";
};
};
config = mkIf cfg.enable {
programs.nixvim.extraPackages = [ pkgs.rust-analyzer ];
programs.nixvim.plugins.lsp.enabledServers = [ "rust_analyzer" ];
};
}