yetone/cosmos-nvim

some plugins may be helpful

WanderHuang opened this issue · 2 comments

Thanks yetone for creating this awesome repo, I just move from my .config/nvim to this repo. It's so silky! I'd like to recommend this to my coworkers.

Here is some plugins for two features that may be helpful.

  • git graph
  • rust development

In ./lua/plugins.lua, add:

-- for git graph
use 'tpope/vim-fugitive'
use 'rbong/vim-flog'

-- for rust
use {'nvim-telescope/telescope-ui-select.nvim' }
use 'simrat39/rust-tools.nvim'
use 'mfussenegger/nvim-dap'

In init.lua, add:

require('rust-tools').setup({})

Thanks to your approval and recommendation! cosmos-nvim now offers the ability to customize it by creating a configuration file: ~/.cosmos-nvim.lua

return {
  setup_settings = function()
    -- Put your settings here
  end,
  setup_mappings = function(wk)
    -- Put your key mappings here and where you can group and name shortcuts with `which-key`
  end,
  setup_plugins = function(use)
    -- Put the plugins you want to add here, where you can use the `use` function of `packer.nvim`
    use {
      'simrat39/rust-tools.nvim',
      config = function()
        require('rust-tools').setup({})
      end,
    }
  end,
}

The introduction of dap is in progress, so stay tuned!