Skip to content

Commit

Permalink
Add context back
Browse files Browse the repository at this point in the history
  • Loading branch information
simonrw committed May 15, 2024
1 parent dfa3fcd commit 12939c1
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 10 deletions.
5 changes: 1 addition & 4 deletions home/colours.nix
Original file line number Diff line number Diff line change
Expand Up @@ -732,6 +732,7 @@
};
neovim-theme-blocks = {
papercolor = ''
vim.cmd.highlight({ "TreesitterContext", "guibg=#f6f6ff" })
vim.cmd [[set background=light]]
vim.cmd [[colorscheme PaperColorSlim]]
'';
Expand Down Expand Up @@ -928,10 +929,6 @@ in
"tmux-pane-colour"
"vi_mode_cursor"
];
# add vim after file for setting colour theme so it's not overridden by plugins
# home.file.".config/nvim/after/colors/theme.vim".text = ''
# hi TreesitterContext guibg=${current-theme.normal.white}
# '';
programs.nixvim.extraConfigLuaPost = neovim-theme-blocks.${config.me.theme};
programs.nixvim.extraPlugins = with pkgs.vimPlugins;
{
Expand Down
5 changes: 0 additions & 5 deletions home/nixvim/context.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,6 @@ in {
programs.nixvim.plugins.treesitter-context = {
enable = true;
maxLines = 3;
onAttach = ''
function(buf)
vim.cmd.highlight({ "TreesitterContext", "guibg=#363c4a" })
end
'';
};
};
}
2 changes: 1 addition & 1 deletion home/nixvim/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ in {
enable = true;
require-trigger = false;
};
context.enable = false;
context.enable = true;
octo-nvim.enable = true;
oil.enable = true;
};
Expand Down

0 comments on commit 12939c1

Please sign in to comment.