mirror of
https://github.com/NotAShelf/nvf.git
synced 2024-11-05 04:51:14 +00:00
22 lines
400 B
Nix
22 lines
400 B
Nix
{
|
|
config,
|
|
lib,
|
|
...
|
|
}: let
|
|
inherit (lib.modules) mkIf;
|
|
inherit (lib.nvim.dag) entryAfter;
|
|
|
|
cfg = config.vim.lsp;
|
|
in {
|
|
config = mkIf (cfg.enable && cfg.lsplines.enable) {
|
|
vim.startPlugins = ["lsp-lines"];
|
|
vim.luaConfigRC.lsplines = entryAfter ["lspconfig"] ''
|
|
require("lsp_lines").setup()
|
|
|
|
vim.diagnostic.config({
|
|
virtual_text = false,
|
|
})
|
|
'';
|
|
};
|
|
}
|