From 5417f99cb99f5baeb3178976904e4b0186002d6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matej=20Jane=C5=BEi=C4=8D?= Date: Tue, 16 May 2023 11:19:10 +0200 Subject: [PATCH] fix: disable gitblame on start, hide __pycache__ folders in nvimtree, add crates --- lua/plugins/cmp.lua | 1 + lua/plugins/common.lua | 16 ++++++++++++++-- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/lua/plugins/cmp.lua b/lua/plugins/cmp.lua index 985f238..abaec47 100644 --- a/lua/plugins/cmp.lua +++ b/lua/plugins/cmp.lua @@ -103,6 +103,7 @@ return { { name = 'nvim_lsp' }, { name = 'luasnip' }, { name = 'copilot' }, + { name = 'crates' }, }, window = { completion = { diff --git a/lua/plugins/common.lua b/lua/plugins/common.lua index 94ea9c2..ca4c032 100644 --- a/lua/plugins/common.lua +++ b/lua/plugins/common.lua @@ -38,6 +38,9 @@ return { -- highlighting for comments { 'folke/todo-comments.nvim', dependencies = 'nvim-lua/plenary.nvim', opts = {} }, + -- cargo crates + { 'saecki/crates.nvim', dependencies = 'nvim-lua/plenary.nvim', opts = {} }, + -- newage search plugin { 'ggandor/leap.nvim', @@ -114,10 +117,11 @@ return { { -- git blame annotations 'f-person/git-blame.nvim', - config = function() + init = function() -- disable on startup vim.g.gitblame_enabled = 0 - + end, + config = function() vim.api.nvim_set_keymap('n', 'gt', ':GitBlameToggle', { desc = '[G]it Blame [T]oggle', noremap = true }) vim.api.nvim_set_keymap('n', 'gu', ':GitBlameOpenCommitURL', { desc = '[G]it Blame Open Commit [U]rl', noremap = true }) @@ -177,6 +181,14 @@ return { glyphs = require('circles').get_nvimtree_glyphs(), }, }, + filters = { + custom = { + '__pycache__', + }, + }, + git = { + ignore = false, + }, } end, },