From 6bca6df972cd76c550d7d3a0628518fb61700800 Mon Sep 17 00:00:00 2001 From: Adam French Date: Wed, 18 Mar 2026 23:37:36 +0000 Subject: [PATCH] Update nvim config: terminal layout, colorschemes, and vimade Reposition terminal and Claude Code windows relative to current window at 30% height, add multiple colorschemes with oxocarbon as default, and add vimade plugin with blocklist to keep Claude terminal unfaded. Co-Authored-By: Claude Opus 4.6 --- nvim/lua/config/keymaps.lua | 12 +++++++++++ nvim/lua/plugins/claudecode.lua | 11 +++++++++- nvim/lua/plugins/colorscheme.lua | 36 +++++++++++++++++++++++++++++++- nvim/lua/plugins/vimade.lua | 13 ++++++++++++ 4 files changed, 70 insertions(+), 2 deletions(-) create mode 100644 nvim/lua/plugins/vimade.lua diff --git a/nvim/lua/config/keymaps.lua b/nvim/lua/config/keymaps.lua index 2c134f7..3c4adcc 100644 --- a/nvim/lua/config/keymaps.lua +++ b/nvim/lua/config/keymaps.lua @@ -1,3 +1,15 @@ -- Keymaps are automatically loaded on the VeryLazy event -- Default keymaps that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/keymaps.lua -- Add any additional keymaps here + +-- Terminal: open relative to current window (don't squash explorer) and smaller +local terminal_opts = { + cwd = LazyVim.root(), + win = { position = "bottom", height = 0.3, relative = "win" }, +} +vim.keymap.set({ "n", "t" }, "", function() + Snacks.terminal(nil, terminal_opts) +end, { desc = "Terminal (Root Dir)" }) +vim.keymap.set({ "n", "t" }, "", function() + Snacks.terminal(nil, terminal_opts) +end, { desc = "which_key_ignore" }) diff --git a/nvim/lua/plugins/claudecode.lua b/nvim/lua/plugins/claudecode.lua index 2b10879..95bc04a 100644 --- a/nvim/lua/plugins/claudecode.lua +++ b/nvim/lua/plugins/claudecode.lua @@ -2,7 +2,16 @@ return { { "coder/claudecode.nvim", dependencies = { "folke/snacks.nvim" }, - config = true, + opts = { + terminal = { + split_width_percentage = 0.99, + snacks_win_opts = { + relative = "win", + position = "bottom", + height = 0.30, + }, + }, + }, keys = { { "a", nil, desc = "AI/Claude Code" }, { "ac", "ClaudeCode", desc = "Toggle Claude" }, diff --git a/nvim/lua/plugins/colorscheme.lua b/nvim/lua/plugins/colorscheme.lua index 5167df4..056606b 100644 --- a/nvim/lua/plugins/colorscheme.lua +++ b/nvim/lua/plugins/colorscheme.lua @@ -1,3 +1,37 @@ return { - { "ellisonleao/gruvbox.nvim" }, + { + "nyoom-engineering/oxocarbon.nvim", + lazy = false, + priority = 1000, + config = function() + vim.opt.background = "dark" + vim.cmd("colorscheme oxocarbon") + end, + }, + { + "sainnhe/sonokai", + opts = { + sonokai_style = "atlantis", + sonokai_transparent_background = 1, + sonokai_enable_italic = true, + }, + }, + { + "folke/tokyonight.nvim", + opts = { + style = "night", + transparent = true, + styles = { comments = { italic = true } }, + }, + }, + { + "loctvl842/monokai-pro.nvim", + opts = { + transparent_background = true, + filter = "spectrum", + }, + }, + { "scottmckendry/cyberdream.nvim" }, + { "maxmx03/fluoromachine.nvim" }, + { "rafamadriz/neon" }, } diff --git a/nvim/lua/plugins/vimade.lua b/nvim/lua/plugins/vimade.lua new file mode 100644 index 0000000..3c78b84 --- /dev/null +++ b/nvim/lua/plugins/vimade.lua @@ -0,0 +1,13 @@ +return { + "TaDaa/vimade", + event = "WinNew", + opts = { + recipe = { "minimalist", { animate = true } }, + fadelevel = 0.8, + blocklist = { + claude_terminal = { + buf_opts = { ft = "snacks_terminal" }, + }, + }, + }, +}