added several tools for nvim

This commit is contained in:
liph22
2025-12-20 19:51:55 +01:00
parent bb05a90ee9
commit 381dda3e7a
9 changed files with 77 additions and 18 deletions

File diff suppressed because one or more lines are too long

View File

@@ -7,6 +7,7 @@
"cmp-buffer": { "branch": "main", "commit": "b74fab3656eea9de20a9b8116afa3cfc4ec09657" },
"cmp-cmdline": { "branch": "main", "commit": "d126061b624e0af6c3a556428712dd4d4194ec6d" },
"cmp-nvim-lsp": { "branch": "main", "commit": "cbc7b02bb99fae35cb42f514762b89b5126651ef" },
"cmp-nvim-lua": { "branch": "main", "commit": "e3a22cb071eb9d6508a156306b102c45cd2d573d" },
"cmp-path": { "branch": "main", "commit": "c642487086dbd9a93160e1679a1327be111cbc25" },
"cmp-tabnine": { "branch": "main", "commit": "c0167cdc86c15e782c5461ee62aebee89231c2ed" },
"cmp_luasnip": { "branch": "master", "commit": "98d9cb5c2c38532bd9bdb481067b20fea8f32e90" },
@@ -45,6 +46,7 @@
"obsidian.nvim": { "branch": "main", "commit": "ae1f76a75c7ce36866e1d9342a8f6f5b9c2caf9b" },
"plenary.nvim": { "branch": "master", "commit": "b9fd5226c2f76c951fc8ed5923d85e4de065e509" },
"portal.nvim": { "branch": "main", "commit": "77d9d53fec945bfa407d5fd7120f1b4f117450ed" },
"rainbow-delimiters.nvim": { "branch": "master", "commit": "8aafe2cbd89cd4090f573a98cab6b20366576fde" },
"telescope-ui-select.nvim": { "branch": "master", "commit": "6e51d7da30bd139a6950adf2a47fda6df9fa06d2" },
"telescope.nvim": { "branch": "master", "commit": "3d757e586ff0bfc85bdb7b46c9d3d932147a0cde" },
"trouble.nvim": { "branch": "main", "commit": "bd67efe408d4816e25e8491cc5ad4088e708a69a" },

View File

@@ -0,0 +1,18 @@
return {
{
"lukas-reineke/indent-blankline.nvim",
main = "ibl",
config = function()
require("ibl").setup({
indent = {
char = "",
},
scope = {
enabled = true,
show_start = true,
show_end = false,
},
})
end,
},
}

View File

@@ -2,12 +2,19 @@ return {
{
"hrsh7th/cmp-nvim-lsp",
},
{
"hrsh7th/cmp-cmdline", -- NEW: Command line completion
},
{
"hrsh7th/cmp-nvim-lua", -- NEW: Better Neovim Lua API completion
},
{
"L3MON4D3/LuaSnip",
-- follow latest release.
version = "v2.*", -- Replace <CurrentMajor> by the latest released major (first number of latest release)
-- install jsregexp (optional!).
build = "make install_jsregexp"
version = "v2.*",
build = "make install_jsregexp",
dependencies = {
"rafamadriz/friendly-snippets", -- Pre-made snippets
},
},
{
"hrsh7th/nvim-cmp",

View File

@@ -2,17 +2,40 @@ return {
{
"lukas-reineke/indent-blankline.nvim",
main = "ibl",
event = { "BufReadPost", "BufNewFile" },
config = function()
require("ibl").setup({
indent = {
char = "",
char = "",
},
scope = {
enabled = true,
char = "", -- Same character, different color
show_start = true,
show_end = false,
show_end = true,
},
exclude = {
filetypes = {
"help",
"alpha",
"dashboard",
"lazy",
"mason",
},
},
})
-- Very subtle gray for all indent lines
vim.api.nvim_set_hl(0, "IblIndent", { fg = "#313244" })
-- Soft accent for current scope (choose one):
-- Blue:
vim.api.nvim_set_hl(0, "IblScope", { fg = "#5E81AC" })
-- Or Purple:
-- vim.api.nvim_set_hl(0, "IblScope", { fg = "#B48EAD" })
-- Or Green:
-- vim.api.nvim_set_hl(0, "IblScope", { fg = "#A3BE8C" })
end,
},
}

View File

@@ -5,7 +5,7 @@ return {
opts = {
ensure_installed = {
-- Formatters (you already have these)
"stylua",
"luaformatter",
"prettier",
"rubocop",
"black",

View File

@@ -0,0 +1,8 @@
return {
{
"HiPhish/rainbow-delimiters.nvim",
config = function()
require("rainbow-delimiters.setup").setup()
end,
},
}

View File

@@ -9,10 +9,10 @@ mkdir -p "$SHADER_DIR"
# Check if shader file exists, if not create with default brightness
if [ ! -f "$SHADER_FILE" ]; then
CURRENT=1.0
CURRENT=1.0
else
# Get current brightness multiplier
CURRENT=$(grep -oP 'pixColor.rgb \*= \K[0-9.]+' "$SHADER_FILE" | tail -1)
# Get current brightness multiplier
CURRENT=$(grep -oP 'pixColor.rgb \*= \K[0-9.]+' "$SHADER_FILE" | tail -1)
fi
# Calculate new brightness (decrease by 10%)
@@ -20,7 +20,7 @@ NEW=$(echo "$CURRENT * 0.90" | bc -l)
# Cap at 0.1 to prevent complete darkness
if (( $(echo "$NEW < 0.1" | bc -l) )); then
NEW=0.1
NEW=0.1
fi
# Format to 2 decimal places
@@ -29,7 +29,7 @@ NEW=$(printf "%.2f" "$NEW")
# Check if blue light filter is currently enabled
BLUELIGHT_ENABLED=false
if [ -f "$SHADER_FILE" ] && grep -q "pixColor.b \*= 0.6" "$SHADER_FILE"; then
BLUELIGHT_ENABLED=true
BLUELIGHT_ENABLED=true
fi
# Recreate the shader file
@@ -44,30 +44,30 @@ uniform sampler2D tex;
void main() {
vec4 pixColor = texture(tex, v_texcoord);
EOF
if [ "$BLUELIGHT_ENABLED" = true ]; then
cat >> "$SHADER_FILE" << EOF
cat >> "$SHADER_FILE" << EOF
// Reduce blue light
pixColor.r *= 1.0;
pixColor.g *= 0.85;
pixColor.b *= 0.6;
EOF
fi
cat >> "$SHADER_FILE" << EOF
// Adjust brightness
pixColor.rgb *= $NEW;
fragColor = pixColor;
}
EOF
# Apply shader
if [ -z "$HYPRLAND_INSTANCE_SIGNATURE" ]; then
export HYPRLAND_INSTANCE_SIGNATURE=$(ls -t /tmp/hypr/ 2>/dev/null | head -n1)
export HYPRLAND_INSTANCE_SIGNATURE=$(ls -t /tmp/hypr/ 2>/dev/null | head -n1)
fi
/usr/bin/hyprctl keyword decoration:screen_shader "$SHADER_FILE"

View File

@@ -1,7 +1,6 @@
tank /mnt/tank/ t
ssd2 /mnt/ssd2/ 7
ssd1 /mnt/ssd1/ 6
plugins /home/liph/.config/nvim/lua/plugins/ p
obsidian /home/liph/Documents/obsidian/vault/ o
nvim /home/liph/.config/nvim/ n
liph /home/liph/ l
@@ -15,4 +14,5 @@ hdd1 /mnt/hdd1/ 1
flash1 /mnt/flash1/ 8
Downloads /home/liph/Downloads/ D
dotfiles /home/liph/dotfiles/ d
Desktop /home/liph/Desktop/ d
.config /home/liph/.config/ c