Skip to content
This repository was archived by the owner on Jul 5, 2022. It is now read-only.

Global config vs Lang config #97

@rodhash

Description

@rodhash

Hi

Not sure whether this is an issue but am I not able to set "string-name" globally? Do I need to add this for each language if I wish to customize it?

In the README we have the following example:

require("nvim-gps").setup({

	disable_icons = false,           -- Setting it to true will disable all icons

	icons = {
		["class-name"] = ' ',      -- Classes and class-like objects
		["function-name"] = ' ',   -- Functions
		["method-name"] = ' ',     -- Methods (functions inside class-like objects)
		["container-name"] = '⛶ ',  -- Containers (example: lua tables)
		["tag-name"] = '炙'         -- Tags (example: html tags)
	},

Adding ["string-name"] = ' ' in there doesn't work, tried opening yaml files but doesn't work.

It works only when adding a custom configuation for "yaml", like it's shown in the README:

	languages = {
		-- Some languages have custom icons
		["yaml"] = {
			icons = {
                                ["mapping-name"] = ' ',
                                ["sequence-name"] = ' ',
                                ["null-name"] = '[] ',
                                ["boolean-name"] = 'ﰰﰴ ',
                                ["integer-name"] = '# ',
                                ["float-name"] = ' ',
				["string-name"] = '    '
			}
		},

Is this expected? string-name can't be set globally for every language?

Thank you

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions