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