telescope-import.nvim
telescope-import.nvim copied to clipboard
Import modules with ease
 ⬇️ *presses `fi`* [`Telescope import`] ⬇️  `config`: ```lua require("telescope").setup({ ... extensions = { ... import = { insert_at_top = true, custom_languages = { { regex = [[^(?:import(?:[\"'\s]*([\w*{}\n, ]+)from\s*)?[\"'\s](.*?)[\"'\s].*)]],...
Whether imports should be added to the top or somewhere else often also depends on the language. In python, for example, it's convention to always put imports at the top,...
When selecting an import that uses a relative path from another file, the path may be incorrect relative to the current buffer. Automatically updating the path to the current buffer...
When working on a Python project in Windows 11 (Neovim v0.10.4), I noticed that nearly all import statements were failing to be recognized and loaded. After investigation, the root causes...