plugins.ts-comments.settings

Options provided to the require('ts-comments').setup function.

Type: attribute set of anything

Default: { }

Example:

{
  callback = {
    __raw = ''
      function()
        print('nixvim')
      end
    '';
  };
  foo_bar = 42;
  hostname = "localhost:8080";
}

Declared by:

plugins.ts-comments.settings.lang

Configure comment string for each language.

ts-comments.nvim uses the default Neovim commentstring as a fallback, so there’s no need to configure every language.

Type: null or (attribute set of (anything or raw lua code))

Default: null

Plugin default:

{
  astro = "";
  axaml = "";
  blueprint = "// %s";
  c = "// %s";
  c_sharp = "// %s";
  clojure = [
    ";; %s"
    "; %s"
  ];
  cpp = "// %s";
  cs_project = "";
  cue = "// %s";
  fsharp = "// %s";
  fsharp_project = "";
  gleam = "// %s";
  glimmer = "{{! %s }}";
  graphql = "# %s";
  handlebars = "{{! %s }}";
  hcl = "# %s";
  html = "";
  hyprlang = "# %s";
  ini = "; %s";
  ipynb = "# %s";
  javascript = {
    __unkeyed-1 = "// %s";
    __unkeyed-2 = "/* %s */";
    call_expression = "// %s";
    jsx_attribute = "// %s";
    jsx_element = "{/* %s */}";
    jsx_fragment = "{/* %s */}";
    spread_element = "// %s";
    statement_block = "// %s";
  };
  kdl = "// %s";
  php = "// %s";
  rego = "# %s";
  rescript = "// %s";
  rust = [
    "// %s"
    "/* %s */"
  ];
  sql = "-- %s";
  styled = "/* %s */";
  svelte = "";
  templ = {
    __default = "// %s";
    component_block = "";
  };
  terraform = "# %s";
  tsx = {
    "/* %s */" = null;
    __default = "// %s";
    call_expression = "// %s";
    jsx_attribute = "// %s";
    jsx_element = "{/* %s */}";
    jsx_fragment = "{/* %s */}";
    spread_element = "// %s";
    statement_block = "// %s";
  };
  twig = "{# %s #}";
  typescript = [
    "// %s"
    "/* %s */"
  ];
  vue = "";
  xaml = "";
}

Declared by: