feat: use lsp_lines

This commit is contained in:
Youwen Wu 2024-10-11 12:51:01 -07:00
parent d962ad3d0b
commit ff8bdc0eb8
Signed by: youwen5
GPG key ID: 865658ED1FE61EC3
3 changed files with 19 additions and 0 deletions

View file

@ -171,6 +171,7 @@
crates-nvim
haskell-tools-nvim
vim-wakatime
lsp_lines-nvim
];
};

View file

@ -1,4 +1,11 @@
return function()
local symbols = { Error = "󰅙", Info = "󰋼", Hint = "󰌵", Warn = "" }
for name, icon in pairs(symbols) do
local hl = "DiagnosticSign" .. name
vim.fn.sign_define(hl, { text = icon, numhl = hl, texthl = hl })
end
local lspconfig = require("lspconfig")
lspconfig.lua_ls.setup({

View file

@ -237,4 +237,15 @@ return {
},
{ "rustaceanvim" },
{ "haskell-tools.nvim" },
{
"lsp_lines.nvim",
event = "LspAttach",
after = function()
require("lsp_lines").setup()
vim.diagnostic.config({
virtual_text = false,
virtual_lines = { only_current_line = true },
})
end,
},
}