LoipesMas / gdformat.vim

Vim plugin for gdformat integration

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

About

A simple wrapper for gdformat.

It's based on clang-format.py.

Requirements

Obviously requires gdformat from godot-gdscript-toolkit.

If it's not in your PATH, you need to set g:gdformat_path to it's path.

Installation

Install using your favourite plugin manager.

For example Plug 'loipesmas/gdformat.vim' for vim-plug.

You also need to install gdformat, for example with pip install gdtoolkit.

Usage

Use command :GDFormat to format current buffer.

You can also do let g:gdformat_on_write = 1 in your vim config to automatically format on write.

Contributing

Contributions are very welcome! Just open an issue or a PR.

About

Vim plugin for gdformat integration

License:Apache License 2.0


Languages

Language:Python 84.6%Language:Vim Script 11.5%Language:GDScript 2.7%Language:Shell 1.2%