feat: lsplines module

This commit is contained in:
raf 2023-07-30 19:54:54 +03:00
parent 962029703e
commit f4c2845049
No known key found for this signature in database
GPG key ID: 02D1DD3FA08B6B29
4 changed files with 36 additions and 0 deletions

View file

@ -15,5 +15,6 @@ _: {
./lsp-signature ./lsp-signature
./lightbulb ./lightbulb
./lspkind ./lspkind
./lsplines
]; ];
} }

View file

@ -0,0 +1,20 @@
{
config,
lib,
...
}:
with lib;
with builtins; let
cfg = config.vim.lsp;
in {
config = mkIf (cfg.enable && cfg.lsplines.enable) {
vim.startPlugins = ["lsp-lines"];
vim.luaConfigRC.lsplines = nvim.dag.entryAfter ["lspconfig"] ''
require("lsp_lines").setup()
vim.diagnostic.config({
virtual_text = false,
})
'';
};
}

View file

@ -0,0 +1,6 @@
_: {
imports = [
./config.nix
./lsplines.nix
];
}

View file

@ -0,0 +1,9 @@
{lib, ...}:
with lib;
with builtins; {
options.vim.lsp = {
lsplines = {
enable = mkEnableOption "diagnostics using virtual lines on top of the real line of code. [lsp_lines]";
};
};
}