From 176303307729e45fb6a106a65c004c11ee390841 Mon Sep 17 00:00:00 2001 From: Iron-E Date: Wed, 3 May 2023 01:03:10 -0400 Subject: [PATCH] perf(ftplugin): improve lazy loading capability --- ftplugin/rust/highlite.lua | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ftplugin/rust/highlite.lua b/ftplugin/rust/highlite.lua index 6038328..3c019fc 100644 --- a/ftplugin/rust/highlite.lua +++ b/ftplugin/rust/highlite.lua @@ -1,5 +1,3 @@ -local Treesitter = require 'highlite.treesitter' --- @type highlite.Treesitter - if vim.api.nvim_get_var('colors_name'):find '^highlite' then - Treesitter.add_directive.offset_from_start() + require('highlite.treesitter').add_directive.offset_from_start() end