Removed unused plugins, and added treesitter-context

This commit is contained in:
Afonso Franco 2022-12-09 09:41:34 +00:00
parent afd0619253
commit 60f4592f8a
Signed by: afonso
GPG key ID: C459E0BB3DCEE899
2 changed files with 14 additions and 14 deletions

View file

@ -105,6 +105,12 @@ local plugins = packer.startup({function(use)
end
}
use {"nvim-treesitter/nvim-treesitter-context",
config = function()
require "plugins.treesitter-context"
end
}
--Tabs
use {'romgrk/barbar.nvim',
requires = 'kyazdani42/nvim-web-devicons',
@ -120,20 +126,6 @@ local plugins = packer.startup({function(use)
requires = { {'nvim-lua/plenary.nvim'} },
config = function() require('plugins.telescope') end
}
--live share like functionality
use {"jbyuki/instant.nvim"}
use {"narutoxy/silicon.lua",
requires = { "nvim-lua/plenary.nvim" },
config = function()
require('silicon').setup({
font = "FiraCode Nerd Font Mono",
output = "~/Pictures/SILICON_${year}-${month}-${date}.png",
debug = true
})
require "plugins.silicon"
end
}
use {"tpope/vim-surround"}

View file

@ -0,0 +1,8 @@
require'treesitter-context'.setup{
patterns = {
rust = {
'impl_item',
'match',
},
}
}