Skip to content

nicanordlc/tempra.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tempra.nvim

Template Render Path

Inspiration

Have you wanted to have your IDE configuration separated by multiples files but can't ?

With this you could have a file structure that look like this:

.
└── code/
    ├── settings.json
    ├── general.json
    ├── vim.json
    └── some-plugin.json

When all the config is rendered on the floating window you could dump it on your IDE ;)

Preview

Have a template like this, where you have another file "imported" like this <% ./my-file.txt %>:

template

Once you run the command :TempraToggle a new window popup will open with the rendered version of what's imported.

template

Install

Lazy

Currently only tested on lazy.nvim 😅

{
  'nicanordlc/tempra.nvim',
  opts = {
    max_recursion_depth = 5,
    mappings = {
      close = { "<esc>", "q" },
    },
  },
  cmd = 'TempraToggle',
  keys = {
    {
      '<leader>tp',
      '<cmd>TempraToggle<cr>',
      desc = 'Toggle [t]empra',
    },
  },
}

Todo

  • Highlight the imports

About

Render Path Views

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

No packages published

Languages