Add gitui config and update vim settings

This commit is contained in:
Thomas Avé 2023-08-23 14:14:13 +02:00
parent ae4c7b5603
commit c7eb3df1d0
4 changed files with 32 additions and 2 deletions

8
gitui/key_bindings.ron Normal file
View File

@ -0,0 +1,8 @@
(
move_left: Some(( code: Char('h'), modifiers: ( bits: 0,),)),
move_right: Some(( code: Char('l'), modifiers: ( bits: 0,),)),
move_up: Some(( code: Char('k'), modifiers: ( bits: 0,),)),
move_down: Some(( code: Char('j'), modifiers: ( bits: 0,),)),
stash_open: Some(( code: Char('l'), modifiers: ( bits: 0,),)),
open_help: Some(( code: F(1), modifiers: ( bits: 0,),)),
)

23
gitui/theme.ron Normal file
View File

@ -0,0 +1,23 @@
(
selected_tab: Reset,
command_fg: White,
selection_bg: Blue,
selection_fg: White,
cmdbar_bg: Blue,
cmdbar_extra_lines_bg: Blue,
disabled_fg: DarkGray,
diff_line_add: Green,
diff_line_delete: Red,
diff_file_added: LightGreen,
diff_file_removed: LightRed,
diff_file_moved: LightMagenta,
diff_file_modified: Yellow,
commit_hash: Magenta,
commit_time: LightCyan,
commit_author: Green,
danger_fg: Red,
push_gauge_bg: Blue,
push_gauge_fg: Reset,
tag_fg: LightMagenta,
branch_fg: LightYellow,
)

View File

@ -15,10 +15,8 @@ vim.opt.rtp:prepend(lazypath)
require('lazy').setup({
"rafamadriz/friendly-snippets",
'ConradIrwin/vim-bracketed-paste',
'Vimjas/vim-python-pep8-indent',
'airblade/vim-rooter',
'cappyzawa/trim.nvim',
'ervandew/supertab',
'ggandor/leap.nvim',
'mhartington/formatter.nvim',
'gpanders/editorconfig.nvim',

View File

@ -33,6 +33,7 @@ vim.opt.wildmode = {"longest", "list"}
vim.g.mapleader = ","
vim.g.python_highlight_all = 1
vim.wo.signcolumn = "number"
vim.wo.relativenumber = true
vim.g.rooter_patterns = {".git", "Makefile", "CMakeLists.txt", "build/"}
vim.g.rooter_silent_chdir = 1