Repository navigation
Releases
Releases · Emagjby/filecraft.nvim
filecraft v0.1.1
What’s included
- Automatic plugin loading via
plugin/filecraft.lua - Interactive file and folder creation
- Template-based file generation
- Safe overwrite protection with clear errors
- LSP synchronization after file operations
- Clean UI prompts for paths and names
- Modular internal design (
fs,import,template,ui,run)
Installation
{ 'Emagjby/filecraft.nvim' }filecraft v0.1.0
filecraft.nvim turns file creation into a semantic, one-keypress operation: prompt once, then create the file, write the export, insert the import at cursor, jump to the new file, and refresh LSP.
Highlights
<leader>ifworkflow: path → export type → export name- Root resolution: nearest
.gitparent, fallback tocwd - JS/TS only (
.js,.ts), blocking and synchronous by design - Locked templates:
export default function Name()/export function Name() - Import insertion at cursor (insert line above cursor), relative path without extension
- Minimal atomicity: on failure, remove inserted import and delete created file
- Brute-force LSP sync via
:LspRestart(guarded)