Tmux: - Add explicit terminal = "screen-256color" to prevent home-manager from overriding with plain "screen" terminal setting - This ensures proper 256-color support for gruvbox theme Neovim: - Set explicit colorscheme to maintain consistency with lualine theme - Remove confusing "no custom colorscheme" comment Also update flake.lock with latest dependencies. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
67 lines
1.8 KiB
Nix
67 lines
1.8 KiB
Nix
{ pkgs, ... }:
|
|
|
|
{
|
|
programs.neovim = {
|
|
enable = true;
|
|
defaultEditor = true;
|
|
plugins = with pkgs.vimPlugins; [
|
|
nvim-tree-lua
|
|
nvim-treesitter.withAllGrammars
|
|
lualine-nvim
|
|
nvim-web-devicons
|
|
];
|
|
extraLuaConfig = ''
|
|
-- Basic settings
|
|
vim.opt.number = true
|
|
vim.opt.relativenumber = false
|
|
vim.opt.expandtab = true
|
|
vim.opt.shiftwidth = 2
|
|
vim.opt.tabstop = 2
|
|
vim.opt.smartindent = true
|
|
vim.opt.wrap = false
|
|
vim.opt.termguicolors = true
|
|
|
|
-- Enable filetype detection and syntax
|
|
vim.cmd('filetype on')
|
|
vim.cmd('filetype plugin on')
|
|
vim.cmd('filetype indent on')
|
|
vim.cmd('syntax enable')
|
|
|
|
-- Leader key
|
|
vim.g.mapleader = " "
|
|
|
|
-- Set gruvbox colorscheme to match lualine theme
|
|
vim.cmd('colorscheme default') -- Use a simple colorscheme that works with lualine
|
|
|
|
-- Nvim-tree setup
|
|
require("nvim-tree").setup({})
|
|
vim.keymap.set("n", "<leader>e", ":NvimTreeToggle<CR>", { desc = "Toggle file explorer" })
|
|
|
|
-- Treesitter setup
|
|
require('nvim-treesitter.configs').setup({
|
|
highlight = {
|
|
enable = true,
|
|
additional_vim_regex_highlighting = true,
|
|
},
|
|
indent = {
|
|
enable = true,
|
|
},
|
|
ensure_installed = {}, -- Managed by Nix
|
|
auto_install = false,
|
|
})
|
|
|
|
-- Lualine setup
|
|
require('lualine').setup({
|
|
options = {
|
|
theme = 'gruvbox_dark',
|
|
component_separators = { left = '|', right = '|'},
|
|
section_separators = { left = ' ', right = ' '},
|
|
},
|
|
})
|
|
|
|
-- Basic keymaps
|
|
vim.keymap.set("n", "<leader>w", ":w<CR>", { desc = "Save file" })
|
|
vim.keymap.set("n", "<leader>q", ":q<CR>", { desc = "Quit" })
|
|
'';
|
|
};
|
|
}
|