From c89fe3b30ed41214b7794e999ce2e2e4d17c10e1 Mon Sep 17 00:00:00 2001 From: Michael Mandl Date: Mon, 25 Jul 2022 08:48:10 +0200 Subject: [PATCH] feat(neovim): add lsp_lines plugin --- home-manager/neovim/default.nix | 12 ++++++++++++ home-manager/neovim/lspconfig.lua | 7 +++++++ 2 files changed, 19 insertions(+) diff --git a/home-manager/neovim/default.nix b/home-manager/neovim/default.nix index 84808a8..9cec023 100644 --- a/home-manager/neovim/default.nix +++ b/home-manager/neovim/default.nix @@ -12,6 +12,17 @@ let }; meta.homepage = "https://github.com/hrsh7th/cmp-nvim-lsp-signature-help"; }; + + lsp_lines-nvim = pkgs.vimUtils.buildVimPlugin { + name = "lsp_lines.nvim"; + version = "2022-01-14"; + src = pkgs.fetchgit { + url = "https://git.sr.ht/~whynothugo/lsp_lines.nvim"; + rev = "22ef87c6b2039aac069bfba1c5be5cd26c27b752"; + sha256 = "prhBuAM1jNxZz7F1SUlUda7dKJ/0eXq3Lw6XB9x7zR8="; + }; + meta.homepage = "https://git.sr.ht/~whynothugo/lsp_lines.nvim"; + }; in { home.packages = with pkgs; [ @@ -84,6 +95,7 @@ in rust-tools-nvim lua-dev-nvim null-ls-nvim + lsp_lines-nvim ]; extraConfig = '' diff --git a/home-manager/neovim/lspconfig.lua b/home-manager/neovim/lspconfig.lua index b16fce4..0840633 100644 --- a/home-manager/neovim/lspconfig.lua +++ b/home-manager/neovim/lspconfig.lua @@ -105,3 +105,10 @@ null_ls.setup({ on_attach = on_attach, }) + +-- setup lsp_lines +local lsp_lines = require("lsp_lines") +lsp_lines.setup() +vim.diagnostic.config({ + virtual_text = false, +})