willelz / teastylua.nvim

StyLua for Neovim.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

teastylua.nvim

teastylua.nvim is wrapper for StyLua.

Requirements

  • Neovim nightly (v0.5)
  • StyLua

Usage

For init.vim

nmap <Space>f <Plug>teastyluaFormat

"optional
let g:teastylua_options = '--search-parent-directories --config-path="path/to/config"'

For init.lua

vim.api.nvim_set_keymap("n", "<Space>f", "<Plug>teastyluaFormat")

-- optional
vim.g.teastylua_options = "--search-parent-directories --config-path="path/to/config""

Formats the current buffer when executed.

About

StyLua for Neovim.

License:Other


Languages

Language:Lua 100.0%