plugins.nvim-snippets.settings

Options provided to the require('snippets').setup function.

Type: attribute set of anything

Default: { }

Example:

{
  create_autocmd = true;
  create_cmp_source = true;
  extended_filetypes = {
    typescript = [
      "javascript"
    ];
  };
  friendly_snippets = true;
  global_snippets = [
    "all"
  ];
  ignored_filetypes = [
    "lua"
  ];
  search_paths = [
    {
      __raw = "vim.fn.stdpath('config') .. '/snippets'";
    }
  ];
}

Declared by:

plugins.nvim-snippets.settings.create_autocmd

Optionally load all snippets when opening a file. Only needed if not using nvim-cmp.

Type: null or boolean or raw lua code

Default: null

Plugin default: false

Declared by:

plugins.nvim-snippets.settings.create_cmp_source

Optionally create a nvim-cmp source. Source name will be snippets.

Type: null or boolean or raw lua code

Default: null

Plugin default: true

Declared by:

plugins.nvim-snippets.settings.extended_filetypes

Filetypes to load snippets for in addition to the default ones. ex: {typescript = { ‘javascript’}}

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

Default: null

Plugin default: null

Declared by:

plugins.nvim-snippets.settings.friendly_snippets

Set to true if using friendly-snippets.

Type: null or boolean or raw lua code

Default: null

Plugin default: false

Declared by:

plugins.nvim-snippets.settings.global_snippets

Snippets to load for all filetypes.

Type: null or (list of (string or raw lua code))

Default: null

Plugin default:

[
  "all"
]

Declared by:

plugins.nvim-snippets.settings.ignored_filetypes

Filetypes to ignore when loading snippets.

Type: null or (list of (string or raw lua code))

Default: null

Plugin default: null

Declared by:

plugins.nvim-snippets.settings.search_paths

Paths to search for snippets.

Type: null or (list of (string or raw lua code))

Default: null

Plugin default:

[
  {
    __raw = "vim.fn.stdpath('config') .. '/snippets'";
  }
]

Declared by: