-
Notifications
You must be signed in to change notification settings - Fork 0
Home
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
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
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).