Bobinas P4G
  • Login
  • Public

    • Public
    • Groups
    • Popular
    • People

Conversation

Notices

  1. Bernie (codewiz@mstdn.io)'s status on Sunday, 01-Oct-2023 23:11:41 UTC Bernie Bernie

    Let's talk about #neovim theming for #coding.

    I'm tired of hand-tuning my long list of highlight rules, so I commented out everything and installed a theme which seems to be carefully designed, documented and, crucially, actively maintained:
    https://github.com/projekt0n/github-nvim-theme#github-dark-high-contrast

    I'm not 100% happy with how it looks now, but I'll use it for a couple of days before starting to tweak stuff.

    #terminal #unixporn #vim #programming

    In conversation Sunday, 01-Oct-2023 23:11:41 UTC from mstdn.io permalink

    Attachments

    1. GitHub - projekt0n/github-nvim-theme: Github's Neovim themes
      Github's Neovim themes . Contribute to projekt0n/github-nvim-theme development by creating an account on GitHub.
    • Bernie (codewiz@mstdn.io)'s status on Sunday, 01-Oct-2023 23:11:33 UTC Bernie Bernie
      in reply to
      • Andrew Woods

      @awoodsnet Indeed, that's why I went with github_dark_high_contrast, which perhaps has too much contrast.

      This is the demo screenshot. I customized a few things and I'm quite pleased with the mechanism to override palette elements and highlight groups.

      In conversation Sunday, 01-Oct-2023 23:11:33 UTC permalink

      Attachments


      1. https://media.mstdn.io/mstdn-media/media_attachments/files/111/158/180/973/668/360/original/4025914b0bf0d381.png
    • Andrew Woods (awoodsnet@phpc.social)'s status on Sunday, 01-Oct-2023 23:11:39 UTC Andrew Woods Andrew Woods
      in reply to

      @codewiz one problem that almost all themes suffer from, is low contrast. This makes them hard to read. I understand that they’re trying to keep the focus on the operational code. Some will say it’s aesthetically pleasing – but why make things harder on yourself? this medium gray text on black background has to go.

      Instead, make block comments collapseable. that way they could be expanded and read easily when needed

      In conversation Sunday, 01-Oct-2023 23:11:39 UTC permalink
    • Andrew Woods (awoodsnet@phpc.social)'s status on Monday, 02-Oct-2023 04:41:21 UTC Andrew Woods Andrew Woods
      in reply to

      @codewiz i don’t think it’s too much contrast. I do think the comments should look different from normal text. Comment that are just a shade or 2 darker might be enough. Adding a slight golden or pink tint might help to distinguish comments

      In conversation Monday, 02-Oct-2023 04:41:21 UTC permalink
      Bernie repeated this.
    • Bernie (codewiz@mstdn.io)'s status on Monday, 02-Oct-2023 05:16:19 UTC Bernie Bernie
      in reply to
      • Andrew Woods
      • Dusty Pomerleau

      @awoodsnet @dpom I tweaked the github theme to be closer to what I was used to with vim's default colorscheme.

      This is what it looks like with Rust (left) and Lua (right). Notice the subtle inlay type hints for Rust and the git markers on the right.

      In conversation Monday, 02-Oct-2023 05:16:19 UTC permalink
    • Bernie (codewiz@mstdn.io)'s status on Monday, 02-Oct-2023 05:20:25 UTC Bernie Bernie
      in reply to
      • Andrew Woods
      • Dusty Pomerleau

      I have LSP semantic tokens enabled, and for some reason the equals signs in Lua are colored as keywords (purple) rather than operators (yellow). Doesn't really matter, but once I noticed I can no longer un-see it! 😅

      Anyway, I love my #neovim... and #vim too ❤️

      UPDATE: I found the cause and reported it to the author:
      https://github.com/projekt0n/github-nvim-theme/issues/303#issuecomment-1742408698

      There's a chance it's not actually a bug, so I'm holding back sending a PR until I hear back from the author.

      @awoodsnet @dpom

      In conversation Monday, 02-Oct-2023 05:20:25 UTC permalink

      Attachments

      1. Overridden palette elements must be "re-exported" in specs · Issue #303 · projekt0n/github-nvim-theme
        I override a few colors in the base palette of my theme: palettes = { github_dark_high_contrast = { bg0 = '#202030', -- Brighten floats bg1 = '#000814', -- Bluish background bg2 = '#200818', -- Col...
    • Bernie (codewiz@mstdn.io)'s status on Monday, 02-Oct-2023 06:56:56 UTC Bernie Bernie
      in reply to
      • Andrew Woods
      • Dusty Pomerleau

      @dpom @awoodsnet Thank you. I'm not going to switch to another theme framework after investing a weekend configuring github-nvim-theme... oops! 😅

      But I'd like to borrow some of the ideas from yours, starting from rainbow-delimiters and indent-blankline.

      I already use Lualine and I had almost forgotten about it because it requires zero maintenance. The ideal plugin.

      In conversation Monday, 02-Oct-2023 06:56:56 UTC permalink
    • Dusty Pomerleau (dpom@fosstodon.org)'s status on Monday, 02-Oct-2023 06:56:57 UTC Dusty Pomerleau Dusty Pomerleau
      in reply to
      • Andrew Woods

      @awoodsnet @codewiz Contrast is a deeply personal aspect of theming. What's interesting about contrast, is that users report a sensation of eye strain with both too much and too little, and the Goldilocks amount of contrast seems to vary considerably between users. The issue of whether comments should have less contrast than other syntax (or just a unique color) is a separate issue, and also rather contested, it seems.

      My theme is here, if you'd like to take a look:

      https://github.com/dustypomerleau/tol.nvim

      In conversation Monday, 02-Oct-2023 06:56:57 UTC permalink

Feeds

  • Activity Streams
  • RSS 2.0
  • Atom
  • Help
  • About
  • FAQ
  • Privacy
  • Source
  • Version
  • Contact

Bobinas P4G is a social network. It runs on GNU social, version 2.0.1-beta0, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All Bobinas P4G content and data are available under the Creative Commons Attribution 3.0 license.