Skip to content

MaeBrooks/nvim-gren

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

Nvim Gren

Neovim Gren support

Requirements

Setup

Simply add using your favourite package manager and call setup()

local gren = require "MaeBrooks/nvim-gren"

gren.setup()

'Lazy' package manager example config

{
    "Maebrooks/nvim-gren",
    dependencies = { "nvim-treesitter/nvim-treesitter" },
}

Auto Formatting

Simply add this to automatically format your current gren file after each write

vim.cmd.autocmd "BufWritePost *.gren :GrenFormat"

Configuration

gren.setup() takes a single optional argument of opts

{
  -- Automatically ensures that the `gren` tree sitter parser is installed using
  -- require("nvim-treesitter.install").ensure_installed("gren")
  -- defaults to true
  use_treesitter = true,
}

Package

Field Description
setup(opts?) Takes a single argument of opts
format_file() writes and formats the current file using gren format
make_file(file?) runs gren make <file=%> - IS NOT SILENT
make_file_silent(file?) runs gren make <file=%> - IS SILENT

Commands

Command Action
:GrenFormat format_file() - writes and formats the current file using gren format
:GrenMake make_file(file) - runs gren make <file=%> where file is the first optional argument

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages