neovim-flake/modules/plugins/lsp/lsplines/config.nix

22 lines
397 B
Nix
Raw Permalink Normal View History

2023-07-30 18:54:54 +02:00
{
config,
lib,
...
}: let
inherit (lib.modules) mkIf;
inherit (lib.nvim.dag) entryAfter;
2023-07-30 18:54:54 +02:00
cfg = config.vim.lsp;
in {
config = mkIf (cfg.enable && cfg.lsplines.enable) {
vim.startPlugins = ["lsp-lines"];
vim.pluginRC.lsplines = entryAfter ["lspconfig"] ''
2023-07-30 18:54:54 +02:00
require("lsp_lines").setup()
vim.diagnostic.config({
virtual_text = false,
})
'';
};
}