feat(context): switch to context.vim

problems with if-else cases in zig when using nvim-treesitter-context
This commit is contained in:
2024-07-13 21:38:35 +02:00
parent 5da7207b57
commit 2dfec6f6ab
2 changed files with 23 additions and 12 deletions
+18
View File
@@ -0,0 +1,18 @@
---@type LazyPluginSpec
return {
"wellle/context.vim",
lazy = true,
event = "VimEnter",
init = function()
vim.g.context_enabled = true
vim.g.context_add_mappings = true
vim.g.context_add_autocmds = true
vim.g.context_presenter = "nvim-float"
vim.g.context_max_height = 10
vim.g.context_ellipsis_char = "·"
vim.g.context_border_char = ""
vim.g.context_highlight_normal = "TreesitterContext"
vim.g.context_highlight_border = "<hide>"
vim.g.context_highlight_tag = "<hide>"
end,
}
+5 -12
View File
@@ -9,11 +9,11 @@ return {
event = "VimEnter", event = "VimEnter",
opts = { opts = {
ensure_installed = { ensure_installed = {
"c", -- recommended default "c", -- recommended default
"lua", -- recommended default "lua", -- recommended default
"vim", -- recommended default "vim", -- recommended default
"vimdoc", -- recommended default "vimdoc", -- recommended default
"query", -- recommended default "query", -- recommended default
"luadoc", "luadoc",
"phpdoc", "phpdoc",
"org", "org",
@@ -47,11 +47,4 @@ return {
-- vim.highlight.priorities.semantic_tokens = 99 -- vim.highlight.priorities.semantic_tokens = 99
end, end,
}, },
{
"nvim-treesitter/nvim-treesitter-context",
opts = {
max_lines = 1,
min_window_height = 10,
},
},
} }