fix keymaps, lazy load pass trying to reduce startup time, shaved ~35ms
This commit is contained in:
parent
8b38a13192
commit
f5efed19c7
11 changed files with 295 additions and 218 deletions
|
|
@ -45,10 +45,16 @@ vim.schedule(function()
|
|||
})
|
||||
end)
|
||||
|
||||
require("treesitter-context").setup({
|
||||
max_lines = 2,
|
||||
multiline_threshold = 3,
|
||||
trim_scope = "inner",
|
||||
vim.api.nvim_create_autocmd("CursorMoved", {
|
||||
once = true,
|
||||
callback = function()
|
||||
vim.pack.add({ "https://github.com/nvim-treesitter/nvim-treesitter-context" })
|
||||
require("treesitter-context").setup({
|
||||
max_lines = 2,
|
||||
multiline_threshold = 3,
|
||||
trim_scope = "inner",
|
||||
})
|
||||
end,
|
||||
})
|
||||
|
||||
-- Textobject helpers
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue