mirror of
https://github.com/nix-community/nixvim.git
synced 2025-08-17 16:01:36 +02:00
nvim-lsp: create nvim LSP plugin
This commit is contained in:
parent
9c13cb407b
commit
ba79ba0652
7 changed files with 134 additions and 4 deletions
18
plugins/nvim-lsp/rnix-lsp.nix
Normal file
18
plugins/nvim-lsp/rnix-lsp.nix
Normal file
|
@ -0,0 +1,18 @@
|
|||
{ pkgs, config, lib, ... }:
|
||||
with lib;
|
||||
let
|
||||
cfg = config.programs.nixvim.plugins.lsp.servers.rnix-lsp;
|
||||
in
|
||||
{
|
||||
options = {
|
||||
programs.nixvim.plugins.lsp.servers.rnix-lsp = {
|
||||
enable = mkEnableOption "Enable rnix LSP, for Nix";
|
||||
};
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
programs.nixvim.extraPackages = [ pkgs.rnix-lsp ];
|
||||
|
||||
programs.nixvim.lsp.plugins.enabledServers = [ "rnix" ];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue