Skip to content

Latest commit

 

History

History
54 lines (40 loc) · 1.63 KB

README.md

File metadata and controls

54 lines (40 loc) · 1.63 KB

rust-cfg.nvim logo

rust-cfg.nvim

Description

This plugin simplifies the process of configuring rust-analyzer targets and features by providing an interactive interface using Telescope.

Installation

You can install this plugin using your favorite plugin manager. For example, using packer.nvim:

use ({
  'babidiii/rust-cfg.nvim',
  requires = {
    'nvim-telescope/telescope.nvim', 
    'nvim-lua/plenary.nvim', 
    'simrat39/rust-tools.nvim', 
  },
  opt = false,
  config = function() 
    require('telescope').load_extension('rust_cfg') 
  end
})

Usage

To use this plugin, simply run Telescope rust_cfg features or Telescope rust_cfg targets. This will open an interactive Telescope interface that allows you to select the features or the targets for your rust-analyzer configuration. The plugin will then restart the Language Server Protocol in order to start with the selected targets and features.

Mappings

local map = vim.api.nvim_set_keymap 
local opts = { noremap = true}

map('n','<leader>cf','<cmd>Telescope rust_cfg features<cr>',opts)
map('n','<leader>ct','<cmd>Telescope rust_cfg targets<cr>',opts)

License

This plugin is licensed under the MIT License.

Contributing

If you would like to contribute to this plugin, please submit a pull request with your changes.

Support

If you encounter any issues or have any questions about this plugin, please submit an issue on the project's GitHub page.