feat: use lsp_lines
This commit is contained in:
parent
d962ad3d0b
commit
ff8bdc0eb8
3 changed files with 19 additions and 0 deletions
|
@ -171,6 +171,7 @@
|
||||||
crates-nvim
|
crates-nvim
|
||||||
haskell-tools-nvim
|
haskell-tools-nvim
|
||||||
vim-wakatime
|
vim-wakatime
|
||||||
|
lsp_lines-nvim
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,11 @@
|
||||||
return function()
|
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")
|
local lspconfig = require("lspconfig")
|
||||||
|
|
||||||
lspconfig.lua_ls.setup({
|
lspconfig.lua_ls.setup({
|
||||||
|
|
|
@ -237,4 +237,15 @@ return {
|
||||||
},
|
},
|
||||||
{ "rustaceanvim" },
|
{ "rustaceanvim" },
|
||||||
{ "haskell-tools.nvim" },
|
{ "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,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue