Skip to content
Arnold Chand edited this page Mar 27, 2023 · 2 revisions

How to use

Setup config using JSON

The simplest way to setup a project configuration will be to use a JSON file.

Below is an example that sets up volar (a LSP server for vue files/projects) for neovim for the first time, and then setup prettier (a code formatter tool) via null-ls plugin. Please check the docs over in :help projectlocal-json-config on how to setup for nvim-lsp, null-ls and more (ale, efmls, diagnosticls, vim global variables).

projectlocal_json.mp4

Setup config using Lua

If you need more fine tuning that is not provided by the JSON file above, you can then opt for using a lua file for neovim.

Below is an example that sets up volar (a LSP server for vue files/projects) for neovim via lspconfig plugin for the first time, and then setup prettier (a code formatter tool) via the ALE plugin.

projectlocal_lua.mp4

Setup config using Vimscript

For those that are using vim, you can write those fine tuning configuration using a vimscript file, if in case the JSON file doesn't provide what you need.

Here is an example of setting up prettier (a code formatter tool) via the ALE plugin and then changing the formatter to xo (another code formatter tool).

projectlocal_vimscript.mp4
Clone this wiki locally