mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-05 23:04:31 +02:00
lsp-lines: init
This commit is contained in:
parent
053314724a
commit
5bc0a552ce
2 changed files with 29 additions and 0 deletions
|
@ -27,6 +27,7 @@
|
||||||
|
|
||||||
./nvim-lsp
|
./nvim-lsp
|
||||||
./nvim-lsp/lspsaga.nix
|
./nvim-lsp/lspsaga.nix
|
||||||
|
./nvim-lsp/lsp-lines.nix
|
||||||
|
|
||||||
./pluginmanagers/packer.nix
|
./pluginmanagers/packer.nix
|
||||||
|
|
||||||
|
|
28
plugins/nvim-lsp/lsp-lines.nix
Normal file
28
plugins/nvim-lsp/lsp-lines.nix
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
{ pkgs, lib, config, ... }:
|
||||||
|
with lib;
|
||||||
|
let
|
||||||
|
cfg = config.programs.nixvim.plugins.lsp-lines;
|
||||||
|
helpers = import ../helpers.nix { lib = lib; };
|
||||||
|
in
|
||||||
|
{
|
||||||
|
options = {
|
||||||
|
programs.nixvim.plugins.lsp-lines = {
|
||||||
|
enable = mkEnableOption "lsp_lines.nvim";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
config.programs.nixvim =
|
||||||
|
mkIf cfg.enable {
|
||||||
|
extraPlugins = [ pkgs.vimPlugins.lsp_lines-nvim ];
|
||||||
|
|
||||||
|
extraConfigLua = ''
|
||||||
|
do
|
||||||
|
require("lsp_lines").setup()
|
||||||
|
|
||||||
|
vim.diagnostics.config({
|
||||||
|
virtual_text = false
|
||||||
|
})
|
||||||
|
end
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue