Skip to content

Latest commit

 

History

History

nvim

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

totosca.nvim

Getting started

  1. Install toto CLI on your system

  2. 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
  3. Add $REPO_PATH/integrations/nvim to your runtimepath

    vim.opt.rtp:append("$REPO_PATH/integrations/nvim/")
  4. Setup a plugin before setting up LSPs:

    require("totosca").setup()
  5. Now totosca is available in lspconfig.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.