fix lsplines
This commit is contained in:
@ -1,3 +0,0 @@
|
|||||||
{
|
|
||||||
"lazy.nvim": { "branch": "main", "commit": "48b52b5cfcf8f88ed0aff8fde573a5cc20b1306d" }
|
|
||||||
}
|
|
Submodule tmux/.tmux/plugins/tmux-continuum updated: 0698e8f4b1...3e4bc35da4
@ -39,21 +39,21 @@ return {
|
|||||||
|
|
||||||
require("lsp_lines").setup()
|
require("lsp_lines").setup()
|
||||||
|
|
||||||
vim.schedule(function()
|
-- vim.schedule(function()
|
||||||
vim.diagnostic.config({
|
vim.diagnostic.config({
|
||||||
severity_sort = true,
|
severity_sort = true,
|
||||||
virtual_text = false,
|
virtual_text = false,
|
||||||
virtual_improved = {
|
virtual_improved = {
|
||||||
severity = { min = vim.diagnostic.severity.WARN },
|
severity = { min = vim.diagnostic.severity.WARN },
|
||||||
current_line = "hide",
|
current_line = "hide",
|
||||||
},
|
},
|
||||||
virtual_lines = {
|
virtual_lines = {
|
||||||
severity = { min = vim.diagnostic.severity.HINT },
|
severity = { min = vim.diagnostic.severity.HINT },
|
||||||
highlight_whole_line = false,
|
highlight_whole_line = false,
|
||||||
only_current_line = true,
|
only_current_line = true,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
end)
|
-- end)
|
||||||
end,
|
end,
|
||||||
keys = {
|
keys = {
|
||||||
{
|
{
|
||||||
|
@ -99,6 +99,8 @@ return {
|
|||||||
},
|
},
|
||||||
-- stylua: ignore
|
-- stylua: ignore
|
||||||
keys = {
|
keys = {
|
||||||
|
{ "<leader>F", "<cmd>lua vim.lsp.buf.format()<CR>" },
|
||||||
|
|
||||||
{ "<leader>rn", "<cmd>lua vim.lsp.buf.rename()<CR>" },
|
{ "<leader>rn", "<cmd>lua vim.lsp.buf.rename()<CR>" },
|
||||||
-- { "?", "<cmd>lua vim.lsp.buf.code_action()<CR>" },
|
-- { "?", "<cmd>lua vim.lsp.buf.code_action()<CR>" },
|
||||||
{ "L", "<cmd>lua vim.lsp.buf.hover()<CR>" },
|
{ "L", "<cmd>lua vim.lsp.buf.hover()<CR>" },
|
||||||
|
@ -1,24 +1,21 @@
|
|||||||
return {
|
return {
|
||||||
{
|
{
|
||||||
"vxpm/ferris.nvim",
|
"mrcjkb/rustaceanvim",
|
||||||
ft = "rust",
|
version = "^5", -- Recommended
|
||||||
config = function()
|
lazy = false, -- This plugin is already lazy
|
||||||
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,
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"saecki/crates.nvim",
|
"saecki/crates.nvim",
|
||||||
ft = "rust",
|
ft = "rust",
|
||||||
version = "v0.3.0",
|
|
||||||
dependencies = { "nvim-lua/plenary.nvim" },
|
dependencies = { "nvim-lua/plenary.nvim" },
|
||||||
config = function()
|
config = function()
|
||||||
require("crates").setup()
|
require("crates").setup({
|
||||||
|
completion = {
|
||||||
|
cmp = {
|
||||||
|
enabled = true,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
})
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user