fix lsplines
This commit is contained in:
@ -39,21 +39,21 @@ return {
|
||||
|
||||
require("lsp_lines").setup()
|
||||
|
||||
vim.schedule(function()
|
||||
vim.diagnostic.config({
|
||||
severity_sort = true,
|
||||
virtual_text = false,
|
||||
virtual_improved = {
|
||||
severity = { min = vim.diagnostic.severity.WARN },
|
||||
current_line = "hide",
|
||||
},
|
||||
virtual_lines = {
|
||||
severity = { min = vim.diagnostic.severity.HINT },
|
||||
highlight_whole_line = false,
|
||||
only_current_line = true,
|
||||
},
|
||||
})
|
||||
end)
|
||||
-- vim.schedule(function()
|
||||
vim.diagnostic.config({
|
||||
severity_sort = true,
|
||||
virtual_text = false,
|
||||
virtual_improved = {
|
||||
severity = { min = vim.diagnostic.severity.WARN },
|
||||
current_line = "hide",
|
||||
},
|
||||
virtual_lines = {
|
||||
severity = { min = vim.diagnostic.severity.HINT },
|
||||
highlight_whole_line = false,
|
||||
only_current_line = true,
|
||||
},
|
||||
})
|
||||
-- end)
|
||||
end,
|
||||
keys = {
|
||||
{
|
||||
|
@ -99,6 +99,8 @@ return {
|
||||
},
|
||||
-- stylua: ignore
|
||||
keys = {
|
||||
{ "<leader>F", "<cmd>lua vim.lsp.buf.format()<CR>" },
|
||||
|
||||
{ "<leader>rn", "<cmd>lua vim.lsp.buf.rename()<CR>" },
|
||||
-- { "?", "<cmd>lua vim.lsp.buf.code_action()<CR>" },
|
||||
{ "L", "<cmd>lua vim.lsp.buf.hover()<CR>" },
|
||||
|
@ -1,24 +1,21 @@
|
||||
return {
|
||||
{
|
||||
"vxpm/ferris.nvim",
|
||||
ft = "rust",
|
||||
config = function()
|
||||
local capabilities = vim.lsp.protocol.make_client_capabilities()
|
||||
capabilities.offsetEncoding = { "utf-16" }
|
||||
require("lspconfig").rust_analyzer.setup({
|
||||
-- offset_encoding = "utf-8",
|
||||
-- capabilities,
|
||||
settings = { ["rust-analyzer"] = {} },
|
||||
})
|
||||
end,
|
||||
"mrcjkb/rustaceanvim",
|
||||
version = "^5", -- Recommended
|
||||
lazy = false, -- This plugin is already lazy
|
||||
},
|
||||
{
|
||||
"saecki/crates.nvim",
|
||||
ft = "rust",
|
||||
version = "v0.3.0",
|
||||
dependencies = { "nvim-lua/plenary.nvim" },
|
||||
config = function()
|
||||
require("crates").setup()
|
||||
require("crates").setup({
|
||||
completion = {
|
||||
cmp = {
|
||||
enabled = true,
|
||||
},
|
||||
},
|
||||
})
|
||||
end,
|
||||
},
|
||||
}
|
||||
|
Reference in New Issue
Block a user