nix-community.nixvim/plugins/nvim-lsp/lsp-lines.nix

29 lines
511 B
Nix
Raw Normal View History

2022-08-28 01:33:43 +01:00
{ pkgs, lib, config, ... }:
with lib;
let
cfg = config.plugins.lsp-lines;
2022-08-28 01:33:43 +01:00
helpers = import ../helpers.nix { lib = lib; };
in
{
options = {
plugins.lsp-lines = {
2022-08-28 01:33:43 +01:00
enable = mkEnableOption "lsp_lines.nvim";
};
};
config =
2022-08-28 01:33:43 +01:00
mkIf cfg.enable {
extraPlugins = [ pkgs.vimPlugins.lsp_lines-nvim ];
extraConfigLua = ''
do
require("lsp_lines").setup()
2022-08-28 21:30:06 +01:00
vim.diagnostic.config({
2022-08-28 01:33:43 +01:00
virtual_text = false
})
end
'';
};
}