fix: disable gitblame on start, hide __pycache__ folders in nvimtree, add crates

This commit is contained in:
Matej Janezic 2023-05-16 11:19:10 +02:00
parent 2c702057ad
commit 5417f99cb9
Signed by: janezicmatej
GPG Key ID: 4298E230ED37B2C0
2 changed files with 15 additions and 2 deletions

View File

@ -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 = {

View File

@ -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,
}, },