mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-23 01:08:43 +02:00
28 lines
559 B
Nix
28 lines
559 B
Nix
{ pkgs, lib, config, ... }:
|
|
with lib;
|
|
let
|
|
cfg = config.programs.nixvim.plugins.lsp-lines;
|
|
helpers = import ../helpers.nix { lib = lib; };
|
|
in
|
|
{
|
|
options = {
|
|
programs.nixvim.plugins.lsp-lines = {
|
|
enable = mkEnableOption "lsp_lines.nvim";
|
|
};
|
|
};
|
|
|
|
config.programs.nixvim =
|
|
mkIf cfg.enable {
|
|
extraPlugins = [ pkgs.vimPlugins.lsp_lines-nvim ];
|
|
|
|
extraConfigLua = ''
|
|
do
|
|
require("lsp_lines").setup()
|
|
|
|
vim.diagnostic.config({
|
|
virtual_text = false
|
|
})
|
|
end
|
|
'';
|
|
};
|
|
}
|