Learn how to configure BetterVim for various any programming language.
better-vim.lua
file located in your Better Vim configuration directory.lsps
entry within the configuration file. If it doesn’t exist,
you can create it as an empty table using the following format:lsps
table, add a new entry for the desired language server.
The key should be a unique identifier for the LSP, and the value should be an
empty table. This table is used to configure the specific settings
, init_options
,
cmd
and on_attach
function for the LSP through lspconfig.
For example, to install the prismals
language server, your configuration
would look like this::Mason
and doing a Ctrl + F
to find the language server you want to install.settings
, init_options
, cmd
or customize the on_attach
function,
see the example below:
better-vim.lua
file.
better-vim.lua
file located in your Better Vim configuration directory.
formatters
entry within the configuration file. If it doesn’t
exist, you can create it as an empty table using the following format:
formatters
table, add a new entry for the desired formatter.
The key should be a unique identifier for the formatter, and the value should be
an empty table. This table is passed to the with
method when configuring formatting sources
for none-ls. For example, to install the blade_formatter
formatter, your
configuration would look like this:null_ls.builtins.formatting
better-vim.lua
file.