-
Install
toto
CLI on your system -
Clone github.com/Shishqa/totosca somewhere on your system (in the future this will be improved)
git clone https://github.com/Shishqa/totosca.git ~/.local/share/totosca
-
Add
$REPO_PATH/integrations/nvim
to yourruntimepath
vim.opt.rtp:append("$REPO_PATH/integrations/nvim/")
-
Setup a plugin before setting up LSPs:
require("totosca").setup()
-
Now
totosca
is available inlspconfig.server_configurations
Snippet to enable the language server:
require'lspconfig'.totosca.setup{}
Default values:
cmd
:
{ "toto", "ls" }
filetypes
:
{ "yaml.tosca" }
root_dir
:
see source file
single_file_support
:
true
The plugin also defines a filetype
yaml.tosca
, which is set, when yaml has^tosca_definitions_version:
pattern.