Skip to content

marcosantos98/clang-format.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

clang-format

Simple plugin that uses the clang-format tool from the LLVM toolchain to format the current buffer with the given style file.

Usage:

Using lazy:

'marcosantos98/clang-format.nvim'

require('clang-format').setup({ clangFormatPath = <path> })
  • clangFormatPath: path to a file containing the style options.

Btw, You can set <path> like a lua function. Example:

require('clang-format').setup({ clangFormatPath = os.getenv("HOME")..'/.clang-format' })

About

Use clang-format on :w on .c/.h files

Topics

Resources

Stars

Watchers

Forks

Contributors 2

  •  
  •  

Languages