mirror of
https://github.com/nix-community/nixvim.git
synced 2025-08-02 17:15:01 +02:00
plugins/lsp: move related plugins to by-name
This commit is contained in:
parent
91c6b62881
commit
8815180c62
23 changed files with 0 additions and 11 deletions
38
plugins/by-name/lsp-lines/default.nix
Normal file
38
plugins/by-name/lsp-lines/default.nix
Normal file
|
@ -0,0 +1,38 @@
|
|||
{
|
||||
lib,
|
||||
helpers,
|
||||
...
|
||||
}:
|
||||
with lib;
|
||||
helpers.neovim-plugin.mkNeovimPlugin {
|
||||
name = "lsp-lines";
|
||||
luaName = "lsp_lines";
|
||||
originalName = "lsp_lines.nvim";
|
||||
package = "lsp_lines-nvim";
|
||||
|
||||
# This plugin has no settings; it is configured via vim.diagnostic.config
|
||||
hasSettings = false;
|
||||
|
||||
maintainers = [ maintainers.MattSturgeon ];
|
||||
|
||||
# TODO: Introduced 2024-06-25, remove after 24.11
|
||||
imports = [
|
||||
(mkRenamedOptionModule
|
||||
[
|
||||
"plugins"
|
||||
"lsp-lines"
|
||||
"currentLine"
|
||||
]
|
||||
[
|
||||
"diagnostics"
|
||||
"virtual_lines"
|
||||
"only_current_line"
|
||||
]
|
||||
)
|
||||
];
|
||||
|
||||
extraConfig = cfg: {
|
||||
# Strongly recommended by the plugin, to avoid duplication.
|
||||
diagnostics.virtual_text = mkDefault false;
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue