update
This commit is contained in:
parent
b7ce68ddde
commit
21dec419b0
26
init.lua
26
init.lua
|
@ -721,19 +721,19 @@ require('lazy').setup({
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
rust_analyzer = {
|
-- rust_analyzer = {
|
||||||
checkOnSave = {
|
-- checkOnSave = {
|
||||||
allFeatures = true,
|
-- allFeatures = true,
|
||||||
overrideCommand = {
|
-- overrideCommand = {
|
||||||
'cargo',
|
-- 'cargo',
|
||||||
'clippy',
|
-- 'clippy',
|
||||||
'--workspace',
|
-- '--workspace',
|
||||||
'--message-format=json',
|
-- '--message-format=json',
|
||||||
'--all-targets',
|
-- '--all-targets',
|
||||||
'--all-features',
|
-- '--all-features',
|
||||||
},
|
-- },
|
||||||
},
|
-- },
|
||||||
},
|
-- },
|
||||||
|
|
||||||
-- python -> LSP: basedpyright, Formatter & linter
|
-- python -> LSP: basedpyright, Formatter & linter
|
||||||
-- https://github.com/astral-sh/ruff/blob/main/crates/ruff_server/docs/setup/NEOVIM.md
|
-- https://github.com/astral-sh/ruff/blob/main/crates/ruff_server/docs/setup/NEOVIM.md
|
||||||
|
|
|
@ -1,22 +1,16 @@
|
||||||
return {
|
return {
|
||||||
|
-- {
|
||||||
|
-- 'rust-lang/rust.vim',
|
||||||
|
-- ft = 'rust',
|
||||||
|
-- init = function()
|
||||||
|
-- vim.g.rustfmt_autosave = 1
|
||||||
|
-- end,
|
||||||
|
-- },
|
||||||
{
|
{
|
||||||
'rust-lang/rust.vim',
|
'mrcjkb/rustaceanvim',
|
||||||
ft = 'rust',
|
version = '^5', -- Recommended
|
||||||
init = function()
|
lazy = false, -- This plugin is already lazy
|
||||||
vim.g.rustfmt_autosave = 1
|
|
||||||
end,
|
|
||||||
},
|
},
|
||||||
--{
|
|
||||||
-- "simrat39/rust-tools.nvim",
|
|
||||||
-- ft = "rust",
|
|
||||||
-- dependencies = "neovim/nvim-lspconfig",
|
|
||||||
-- opts = function()
|
|
||||||
-- return require "custom.configs.rust-tools"
|
|
||||||
-- end,
|
|
||||||
-- config = function(_, opts)
|
|
||||||
-- require("rust-tools").setup(opts)
|
|
||||||
-- end,
|
|
||||||
--},
|
|
||||||
{
|
{
|
||||||
'saecki/crates.nvim',
|
'saecki/crates.nvim',
|
||||||
ft = { 'rust', 'toml' },
|
ft = { 'rust', 'toml' },
|
||||||
|
@ -27,8 +21,12 @@ return {
|
||||||
crates.show()
|
crates.show()
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
{
|
-- {
|
||||||
'cordx56/rustowl',
|
-- 'cordx56/rustowl',
|
||||||
dependencies = { 'neovim/nvim-lspconfig' },
|
-- dependencies = { 'neovim/nvim-lspconfig' },
|
||||||
},
|
-- -- config = function()
|
||||||
|
-- -- local lspconfig = require 'lspconfig'
|
||||||
|
-- -- lspconfig.rustowlsp.setup {}
|
||||||
|
-- -- end,
|
||||||
|
-- },
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue