Removed unused plugins, and added treesitter-context
This commit is contained in:
parent
afd0619253
commit
60f4592f8a
2 changed files with 14 additions and 14 deletions
|
@ -105,6 +105,12 @@ local plugins = packer.startup({function(use)
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
|
|
||||||
|
use {"nvim-treesitter/nvim-treesitter-context",
|
||||||
|
config = function()
|
||||||
|
require "plugins.treesitter-context"
|
||||||
|
end
|
||||||
|
}
|
||||||
|
|
||||||
--Tabs
|
--Tabs
|
||||||
use {'romgrk/barbar.nvim',
|
use {'romgrk/barbar.nvim',
|
||||||
requires = 'kyazdani42/nvim-web-devicons',
|
requires = 'kyazdani42/nvim-web-devicons',
|
||||||
|
@ -120,20 +126,6 @@ local plugins = packer.startup({function(use)
|
||||||
requires = { {'nvim-lua/plenary.nvim'} },
|
requires = { {'nvim-lua/plenary.nvim'} },
|
||||||
config = function() require('plugins.telescope') end
|
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"}
|
use {"tpope/vim-surround"}
|
||||||
|
|
||||||
|
|
8
.config/nvim/lua/plugins/treesitter-context.lua
Normal file
8
.config/nvim/lua/plugins/treesitter-context.lua
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
require'treesitter-context'.setup{
|
||||||
|
patterns = {
|
||||||
|
rust = {
|
||||||
|
'impl_item',
|
||||||
|
'match',
|
||||||
|
},
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in a new issue