andersevenrud / nordic.nvim

A nord-esque colorscheme for neovim
MIT License
174 stars 12 forks source link

feat: add nvim-navic support #87

Closed dsully closed 1 year ago

andersevenrud commented 1 year ago

I'm not familiar with navic. Could you provide a before and after screenshot of this ? :blush:

dsully commented 1 year ago

Sure - it goes in your status line. Before:

CleanShot 2022-10-24 at 12 03 28@2x

After:

CleanShot 2022-10-24 at 12 01 56@2x
andersevenrud commented 1 year ago

Ah, so it's just plain by standard. I skimmed the codebase and assumed it inherited from standard hl groups.

Speaking of... how would this look if you took the same definitions as given here https://github.com/andersevenrud/nordic.nvim/blob/main/lua/nordic/colors/syntax.lua ?

dsully commented 1 year ago

Search for "For highlights to work," in https://github.com/SmiteshP/nvim-navic/blob/master/README.md (it's hidden under a fold).

Not sure I understand your question. Are you proposing adding the Navic* highlight names to the various sections in that file?

andersevenrud commented 1 year ago

Not sure I understand your question

I was thinking of if you took the definitions from that file, i.e. "variable" is "dark_white" (compared to "blue" in this PR), "numbers" is "purle" there, and so on.

Edit: I'm totally open for suggestions here though. I just wanna see how it looks if the hl's were re-used.

Edit again: ... and also if this would look like the "before" version. Because then we could settle on some new colors. Because I think aerial.nvim has some of the same stuff :)

dsully commented 1 year ago
CleanShot 2022-10-24 at 16 31 34@2x

With as good a mapping as I could get - there are things like NavicIconsFile that don't have an equivalent in syntax.lua.

This is what the colors would look like in code:

return function(c, s, cs)
    return {
        { 'NavicIconsFile', c.blue, c.gray },
        { 'NavicIconsModule', c.blue, c.gray },
        { 'NavicIconsNamespace', c.dark_white, c.gray },
        { 'NavicIconsPackage', c.cyan, c.gray },
        { 'NavicIconsClass', c.cyan, c.gray },
        { 'NavicIconsMethod', c.dark_white, c.gray },
        { 'NavicIconsProperty', c.blue, c.gray },
        { 'NavicIconsField', c.blue, c.gray },
        { 'NavicIconsConstructor', c.dark_white, c.gray },
        { 'NavicIconsEnum', c.yellow, c.gray },
        { 'NavicIconsInterface', c.yellow, c.gray },
        { 'NavicIconsFunction', c.dark_white, c.gray },
        { 'NavicIconsVariable', c.dark_white, c.gray },
        { 'NavicIconsConstant', c.dark_white, c.gray },
        { 'NavicIconsString', c.green, c.gray },
        { 'NavicIconsNumber', c.purple, c.gray },
        { 'NavicIconsBoolean', c.purple, c.gray },
        { 'NavicIconsArray', c.cyan, c.gray },
        { 'NavicIconsObject', c.cyan, c.gray },
        { 'NavicIconsKey', c.blue, c.gray },
        { 'NavicIconsNull', c.dark_white, c.gray },
        { 'NavicIconsEnumMember', c.cyan, c.gray },
        { 'NavicIconsStruct', c.cyan, c.gray },
        { 'NavicIconsEvent', c.purple, c.gray },
        { 'NavicIconsOperator', c.blue, c.gray },
        { 'NavicIconsTypeParameter', c.dark_white, c.gray },
        { 'NavicText', c.dark_white, c.gray },
        { 'NavicSeparator', c.cyan, c.gray },
    }
end

A lot more dark_white and generally monochromatic compared to the code in the PR right now. I personally don't prefer this look.

andersevenrud commented 1 year ago

I think your definitions looked better as well.

Could you maybe look at the aerial definitions to see if there's a need to synchronize the changes ?

dsully commented 1 year ago

I don't use aerial myself. But it has a lot fewer definitions. I assume you'd want to use the navic colors in place of what is there where they align?

andersevenrud commented 1 year ago

Correct :)

On Tue, 25 Oct 2022, 16:41 Dan Sully, @.***> wrote:

I don't use aerial myself. But it has a lot fewer definitions. I assume you'd want to use the navic colors in place of what is there where they align?

— Reply to this email directly, view it on GitHub https://github.com/andersevenrud/nordic.nvim/pull/87#issuecomment-1290665108, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABHODGC6WHIRARIXQOVUOTWE7WP5ANCNFSM6AAAAAARNIEY6A . You are receiving this because you modified the open/close state.Message ID: @.***>

dsully commented 1 year ago

Done in #88