From 0270d78072dc6f3b2b9647646885dd9aabdd2e7e Mon Sep 17 00:00:00 2001 From: Bryan Ramos Date: Wed, 8 Apr 2026 16:00:17 -0400 Subject: [PATCH] fixed --- README.md | 10 ++++++---- lua/plugins/colorscheme.lua | 3 +++ lua/plugins/indent-blankline.lua | 13 ++++++++++--- lua/plugins/neotree.lua | 6 +++--- 4 files changed, 22 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index d989976..144eb56 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Neovim Configuration -Portable Neovim configuration using lazy.nvim and native LSP (Neovim 0.11+). +Portable Neovim configuration using lazy.nvim and native LSP (Neovim 0.11+, tested on 0.12.1). ## Installation @@ -16,8 +16,9 @@ git clone --recurse-submodules git@github.com:itme-brain/nixos.git ## Features -- **Native LSP** (`vim.lsp.config`) - no manual server list needed +- **Native LSP** (`vim.lsp.config` / `vim.lsp.enable`) - no manual server list needed - **Smart LSP picker** (`css`) - auto-detects installed servers for current filetype +- **Neovim 0.12 compatible** - uses built-in `:lsp` commands and keeps legacy `:Lsp*` aliases working - **Portable** - works on NixOS (LSPs via extraPackages) or any system (LSPs via Mason) - **Mason** - auto-disabled on NixOS, auto-installs essentials elsewhere @@ -39,6 +40,7 @@ On other systems, Mason auto-installs: - `yamlls` - YAML The smart picker (`css`) scans all lspconfig servers and shows only those with binaries installed. +On Neovim 0.12+, start/stop/restart uses the built-in `:lsp` commands under the hood. ## Key Bindings @@ -54,8 +56,8 @@ The smart picker (`css`) scans all lspconfig servers and shows only thos | `gr` | Find references | | `e` | Toggle file explorer | | `bd` | Delete buffer | -| `/` | Live grep | -| `ff` | Find files | +| `/` | Live grep from git root | +| `ff` | Find files from git root | ## Plugins diff --git a/lua/plugins/colorscheme.lua b/lua/plugins/colorscheme.lua index 8bc58cc..3312312 100644 --- a/lua/plugins/colorscheme.lua +++ b/lua/plugins/colorscheme.lua @@ -20,6 +20,9 @@ return { GitGutterChange = { bg = "NONE" }, GitGutterAdd = { bg = "NONE" }, GitGutterDelete = { bg = "NONE" }, + GitSignsAddNr = { bg = "NONE", fg = "#98c379" }, + GitSignsChangeNr = { bg = "NONE", fg = "#61afef" }, + GitSignsDeleteNr = { bg = "NONE", fg = "#e06c75" }, SignColumn = { bg = "NONE" }, TelescopeSelection = { bg = "Gray", fg = "Green", bold = true }, TelescopePreviewMatch = { bg = "Yellow", fg = "Black" }, diff --git a/lua/plugins/indent-blankline.lua b/lua/plugins/indent-blankline.lua index 418ab88..27fae5a 100644 --- a/lua/plugins/indent-blankline.lua +++ b/lua/plugins/indent-blankline.lua @@ -2,10 +2,17 @@ return { { "lukas-reineke/indent-blankline.nvim", config = function() + local hooks = require("ibl.hooks") + + hooks.register(hooks.type.HIGHLIGHT_SETUP, function() + vim.api.nvim_set_hl(0, "IblIndent", { link = "Comment" }) + end) + require("ibl").setup({ - --indent = { char = "│" }, - --indent = { char = "⎸" }, - indent = { char = "┆" }, + indent = { + char = "|", + highlight = "IblIndent", + }, scope = { enabled = false }, diff --git a/lua/plugins/neotree.lua b/lua/plugins/neotree.lua index 0dccdf1..c7de716 100644 --- a/lua/plugins/neotree.lua +++ b/lua/plugins/neotree.lua @@ -41,15 +41,15 @@ return { }, }) - -- Set up cursorline highlight for neo-tree (green text on dark bg) - vim.api.nvim_set_hl(0, "NeoTreeCursorLine", { bg = "#313244", fg = "#a6e3a1" }) + -- Keep the selected entry readable without a solid row background. + vim.api.nvim_set_hl(0, "NeoTreeCursorLine", { bg = "NONE", fg = "#a6e3a1" }) -- Apply highlight and re-apply on colorscheme change vim.api.nvim_create_autocmd({ "FileType", "ColorScheme" }, { pattern = { "neo-tree", "*" }, callback = function(ev) if ev.event == "ColorScheme" then - vim.api.nvim_set_hl(0, "NeoTreeCursorLine", { bg = "#313244", fg = "#a6e3a1" }) + vim.api.nvim_set_hl(0, "NeoTreeCursorLine", { bg = "NONE", fg = "#a6e3a1" }) end local win = vim.api.nvim_get_current_win() local buf = vim.api.nvim_win_get_buf(win)