fix: disable gitblame on start, hide __pycache__ folders in nvimtree, add crates
This commit is contained in:
		@@ -103,6 +103,7 @@ return {
 | 
				
			|||||||
          { name = 'nvim_lsp' },
 | 
					          { name = 'nvim_lsp' },
 | 
				
			||||||
          { name = 'luasnip' },
 | 
					          { name = 'luasnip' },
 | 
				
			||||||
          { name = 'copilot' },
 | 
					          { name = 'copilot' },
 | 
				
			||||||
 | 
					          { name = 'crates' },
 | 
				
			||||||
        },
 | 
					        },
 | 
				
			||||||
        window = {
 | 
					        window = {
 | 
				
			||||||
          completion = {
 | 
					          completion = {
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -38,6 +38,9 @@ return {
 | 
				
			|||||||
  -- highlighting for comments
 | 
					  -- highlighting for comments
 | 
				
			||||||
  { 'folke/todo-comments.nvim',    dependencies = 'nvim-lua/plenary.nvim', opts = {} },
 | 
					  { 'folke/todo-comments.nvim',    dependencies = 'nvim-lua/plenary.nvim', opts = {} },
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  -- cargo crates
 | 
				
			||||||
 | 
					  { 'saecki/crates.nvim',          dependencies = 'nvim-lua/plenary.nvim', opts = {} },
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  -- newage search plugin
 | 
					  -- newage search plugin
 | 
				
			||||||
  {
 | 
					  {
 | 
				
			||||||
    'ggandor/leap.nvim',
 | 
					    'ggandor/leap.nvim',
 | 
				
			||||||
@@ -114,10 +117,11 @@ return {
 | 
				
			|||||||
  {
 | 
					  {
 | 
				
			||||||
    -- git blame annotations
 | 
					    -- git blame annotations
 | 
				
			||||||
    'f-person/git-blame.nvim',
 | 
					    'f-person/git-blame.nvim',
 | 
				
			||||||
    config = function()
 | 
					    init = function()
 | 
				
			||||||
      -- disable on startup
 | 
					      -- disable on startup
 | 
				
			||||||
      vim.g.gitblame_enabled = 0
 | 
					      vim.g.gitblame_enabled = 0
 | 
				
			||||||
 | 
					    end,
 | 
				
			||||||
 | 
					    config = function()
 | 
				
			||||||
      vim.api.nvim_set_keymap('n', '<leader>gt', ':GitBlameToggle<CR>', { desc = '[G]it Blame [T]oggle', noremap = true })
 | 
					      vim.api.nvim_set_keymap('n', '<leader>gt', ':GitBlameToggle<CR>', { desc = '[G]it Blame [T]oggle', noremap = true })
 | 
				
			||||||
      vim.api.nvim_set_keymap('n', '<leader>gu', ':GitBlameOpenCommitURL<CR>',
 | 
					      vim.api.nvim_set_keymap('n', '<leader>gu', ':GitBlameOpenCommitURL<CR>',
 | 
				
			||||||
      { desc = '[G]it Blame Open Commit [U]rl', noremap = true })
 | 
					      { desc = '[G]it Blame Open Commit [U]rl', noremap = true })
 | 
				
			||||||
@@ -177,6 +181,14 @@ return {
 | 
				
			|||||||
            glyphs = require('circles').get_nvimtree_glyphs(),
 | 
					            glyphs = require('circles').get_nvimtree_glyphs(),
 | 
				
			||||||
          },
 | 
					          },
 | 
				
			||||||
        },
 | 
					        },
 | 
				
			||||||
 | 
					        filters = {
 | 
				
			||||||
 | 
					          custom = {
 | 
				
			||||||
 | 
					            '__pycache__',
 | 
				
			||||||
 | 
					          },
 | 
				
			||||||
 | 
					        },
 | 
				
			||||||
 | 
					        git = {
 | 
				
			||||||
 | 
					          ignore = false,
 | 
				
			||||||
 | 
					        },
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
    end,
 | 
					    end,
 | 
				
			||||||
  },
 | 
					  },
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user