refactor: use vim.g config and lazy loading #15

Merged
barrettruth merged 1 commit from refactor/vim-g-config into main 2026-02-04 01:30:14 +00:00
barrettruth commented 2026-02-04 01:13:32 +00:00

Summary

  • Replace setup() with vim.g.import_cost configuration
  • Add plugin/import-cost.lua with FileType autocmd for lazy attachment
  • Use getter functions for shared state instead of module properties

Plugin now auto-attaches to supported filetypes without manual setup.

## Summary - Replace `setup()` with `vim.g.import_cost` configuration - Add `plugin/import-cost.lua` with FileType autocmd for lazy attachment - Use getter functions for shared state instead of module properties Plugin now auto-attaches to supported filetypes without manual setup.
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
barrettruth/import-cost.nvim!15
No description provided.