mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2024-12-19 10:59:49 +01:00
feat: lsplines module
This commit is contained in:
parent
962029703e
commit
f4c2845049
4 changed files with 36 additions and 0 deletions
|
@ -15,5 +15,6 @@ _: {
|
|||
./lsp-signature
|
||||
./lightbulb
|
||||
./lspkind
|
||||
./lsplines
|
||||
];
|
||||
}
|
||||
|
|
20
modules/lsp/lsplines/config.nix
Normal file
20
modules/lsp/lsplines/config.nix
Normal 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,
|
||||
})
|
||||
'';
|
||||
};
|
||||
}
|
6
modules/lsp/lsplines/default.nix
Normal file
6
modules/lsp/lsplines/default.nix
Normal file
|
@ -0,0 +1,6 @@
|
|||
_: {
|
||||
imports = [
|
||||
./config.nix
|
||||
./lsplines.nix
|
||||
];
|
||||
}
|
9
modules/lsp/lsplines/lsplines.nix
Normal file
9
modules/lsp/lsplines/lsplines.nix
Normal 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]";
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue