nvim: treesitter-context

This commit is contained in:
Daniel Lundin 2022-07-08 11:03:49 +02:00
parent 9174ea71f8
commit b8c80bef17
2 changed files with 19 additions and 6 deletions

View file

@ -180,6 +180,16 @@ return require('packer').startup(function()
end
}
use({
"nvim-treesitter/nvim-treesitter-context",
requires = {
"nvim-treesitter/nvim-treesitter",
},
config = function()
require("plugins/treesitter-context")
end,
})
use {
"onsails/lspkind-nvim",
config = function()
@ -216,11 +226,11 @@ return require('packer').startup(function()
}
-- copilot
use({
"github/copilot.vim",
config = function()
require("plugins/copilot")
end,
})
-- use({
-- "github/copilot.vim",
-- config = function()
-- require("plugins/copilot")
-- end,
-- })
end)

View file

@ -47,6 +47,9 @@ local specs = lush.parse(function()
PMenuThumb { bg = "#64B5F6" },
StatusLine { base = base.VertSplit, fg = "#BCAAA4" },
StatusLineNC { base = base.VertSplit, fg = "#BCAAA4" },
TreesitterContext { bg = "#f0f0f0", fg = "#BCAAA4", gui = "bold,italic"},
TreesitterContextLineNumber { bg = "#f0f0f0", fg = "#979770", gui = "bold,italic" },
}
end)