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

Global config vs Lang config #97

Open
rodhash opened this issue May 9, 2022 · 1 comment
Open

Global config vs Lang config #97

rodhash opened this issue May 9, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@rodhash
Copy link

rodhash commented May 9, 2022

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

@SmiteshP
Copy link
Owner

Yep, this is expected. Only class, function, method, container and tag name are global.
However I can try to make this work for other names too.

@SmiteshP SmiteshP added the enhancement New feature or request label May 10, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants