nvf/modules/plugins/lsp/lsplines/config.nix

22 lines
400 B
Nix
Raw Permalink Normal View History

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