From b1118e8f47b905c4d971e75eadc1edf7e6d16dff Mon Sep 17 00:00:00 2001 From: Taylor Bockman Date: Fri, 14 Oct 2022 12:46:48 -0700 Subject: [PATCH] More modification. Fix globbing, add empty python config. --- README.md | 7 +++++-- conf/git.vim | 3 ++- conf/langs/python.vim | 3 +++ init.vim | 2 +- 4 files changed, 11 insertions(+), 4 deletions(-) create mode 100644 conf/langs/python.vim diff --git a/README.md b/README.md index a79c07e..58786aa 100644 --- a/README.md +++ b/README.md @@ -22,13 +22,16 @@ through the use of `vimux`. ## Structure * `conf`: Contains all configuration related files. - * `plugins.vim`: Plugin definitions. + * `plugins.vim`: General plugin definitions. * `keybinds.vim`: General keybinds such as leader key, etc. * `config.vim`: Dumping ground for general configurations. * `ui.vim`: General UI configurations. * `search.vim`: Search configurations (for example ctrl-p). * `git.vim`: Fugitive configurations. - * `langs`: Language specific configurations and keybinds. + * `langs`: Language specific configurations and keybinds. These files diverge + from the standard structure slightly. Plugins for each language can be defined + in these files, as well as keybinds and configurations. This was done to keep editing for + a single language to one place. ## Installation diff --git a/conf/git.vim b/conf/git.vim index 4d05fb7..0435a60 100644 --- a/conf/git.vim +++ b/conf/git.vim @@ -1,7 +1,8 @@ " Fugitive Configuration " Fugitive bindings -nnoremap gs :Git status +nnoremap gs :Git " This binding is a weird one. + " :Git is now the full status page. nnoremap gd :Git diff nnoremap gb :Git blame nnoremap gc :Git commit diff --git a/conf/langs/python.vim b/conf/langs/python.vim new file mode 100644 index 0000000..b9a109e --- /dev/null +++ b/conf/langs/python.vim @@ -0,0 +1,3 @@ +" Python configurations, plugins, etc. + + diff --git a/init.vim b/init.vim index c3680db..2aedb55 100644 --- a/init.vim +++ b/init.vim @@ -9,7 +9,7 @@ exe 'source' g:nvim_config_root . '/conf/ui.vim' exe 'source' g:nvim_config_root . '/conf/search.vim' exe 'source' g:nvim_config_root . '/conf/git.vim' -let lang_configs = glob(g:nvim_config_root . '/conf/langs/*.vim') +let lang_configs = glob(g:nvim_config_root . '/conf/langs/*.vim', 1, 1) for lang_config in lang_configs exe 'source' lang_config