Skip to content

Releases

filecraft v0.1.1

Choose a tag to compare

@Emagjby Emagjby released this 24 Jan 21:11

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

Choose a tag to compare

@Emagjby Emagjby released this 24 Jan 20:50

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>if workflow: path → export type → export name
  • Root resolution: nearest .git parent, fallback to cwd
  • 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)