Giter VIP home page Giter VIP logo

Comments (7)

seudonam avatar seudonam commented on June 9, 2024 2

updated to neovim 8.0 and underline is ok !

from vim.

seudonam avatar seudonam commented on June 9, 2024 1

I use neovim on windows 10.

from vim.

svengreb avatar svengreb commented on June 9, 2024

Hi @seudonam 👋

Please see the Nord Vim documentation page about underline styles for details about why underlines are not enabled by default as well as the g:nord_underline theme configuration that allows to enable them.

from vim.

seudonam avatar seudonam commented on June 9, 2024

I added let g:nord_underline = 1 before, but it doesn't work either.😭I think it's something wrong interacting with windows terminal cz underline works on Windows 10 with alacritty in default mode

from vim.

svengreb avatar svengreb commented on June 9, 2024

This is possible and the reason why underline styles are disabled by default like described in the Nord Vim docs:

This design decision is based on the known problems of most terminals related to special font styles like underline.

But another reason could be that the Windows terminal is not marking itself as GUI and therefore Vim does not enable GUI specific features.
Please try to add the following to your Vim configuration:

if (has("termguicolors"))
  set termguicolors
endif

from vim.

seudonam avatar seudonam commented on June 9, 2024

@svengreb
set termguicolors is already added in init.vim before. Actually the underline works when I didn't set this.

from vim.

svengreb avatar svengreb commented on June 9, 2024

Do you use any third-party C++ plugin/package for syntax highlighting other than the bundled one? If so it is possible that is overrides styles for this highlighting group.

Also I just saw that you mentioned that this is related to Neovim LSP diagnostics and the style defined by Nord does explicitly not make use of the underline attribute for the DiagnosticUnderlineWarn syntax group:

https://github.com/arcticicestudio/nord-vim/blob/bc0f057162491e9228207d74bd88b5efe875316e/colors/nord.vim#L191

So my guess is that this is by design, but to make sure it would be nice of you could identify the syntax highlighting group used at the cursor where you are missing the underline.

from vim.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.