diff --git a/.config/nvim/lua/plugins/packer.lua b/.config/nvim/lua/plugins/packer.lua index d237ba3..2bc4a53 100644 --- a/.config/nvim/lua/plugins/packer.lua +++ b/.config/nvim/lua/plugins/packer.lua @@ -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"} diff --git a/.config/nvim/lua/plugins/treesitter-context.lua b/.config/nvim/lua/plugins/treesitter-context.lua new file mode 100644 index 0000000..97a406d --- /dev/null +++ b/.config/nvim/lua/plugins/treesitter-context.lua @@ -0,0 +1,8 @@ +require'treesitter-context'.setup{ + patterns = { + rust = { + 'impl_item', + 'match', + }, + } +}