mirror of
https://github.com/pratiktri/dotfiles.git
synced 2026-02-04 08:41:43 +05:30
Moved VIM plugin config to a separate file. IdeaVimrc & NVIM refers to the new file
This commit is contained in:
@@ -27,6 +27,7 @@
|
|||||||
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||||
source ~/.vim/configs.vim
|
source ~/.vim/configs.vim
|
||||||
source ~/.vim/key_maps.vim
|
source ~/.vim/key_maps.vim
|
||||||
|
source ~/.vim/plugin_config.vim
|
||||||
|
|
||||||
" Because :noh does not work in Jetbrains
|
" Because :noh does not work in Jetbrains
|
||||||
nnoremap <esc> <esc>
|
nnoremap <esc> <esc>
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
require("config.keymaps")
|
require("config.keymaps")
|
||||||
require("config.options")
|
require("config.options")
|
||||||
require("config.autocmd")
|
require("config.autocmd")
|
||||||
|
require("config.vim_plugin_config")
|
||||||
|
|||||||
5
common/.config/nvim/lua/config/vim_plugin_config.lua
Normal file
5
common/.config/nvim/lua/config/vim_plugin_config.lua
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
-- Load Plugin configs from VIM
|
||||||
|
local vim_plugin_config = os.getenv("HOME") .. "/.vim/plugin_config.vim"
|
||||||
|
if vim.loop.fs_stat(vim_plugin_config) then
|
||||||
|
vim.cmd("source " .. vim_plugin_config)
|
||||||
|
end
|
||||||
9
common/.vim/plugin_config.vim
Normal file
9
common/.vim/plugin_config.vim
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
" NERDTree Plugin configurations
|
||||||
|
let g:NERDTreeShowHidden = 1
|
||||||
|
let g:NERDTreeWinSize = 25
|
||||||
|
|
||||||
|
" Quickscope
|
||||||
|
" Trigger a highlight in the appropriate direction when pressing these keys:
|
||||||
|
let g:qs_highlight_on_keys = ['f', 'F', 't', 'T']
|
||||||
|
let g:qs_accepted_chars = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9']
|
||||||
|
|
||||||
@@ -4,6 +4,9 @@ let $VIMRC="$VIMDIR/vimrc"
|
|||||||
" Load plugins
|
" Load plugins
|
||||||
source $VIMDIR/plugins.vim
|
source $VIMDIR/plugins.vim
|
||||||
|
|
||||||
|
" Load plugin configurations
|
||||||
|
source $VIMDIR/plugin_config.vim
|
||||||
|
|
||||||
" Load VIM Configurations
|
" Load VIM Configurations
|
||||||
source $VIMDIR/configs.vim
|
source $VIMDIR/configs.vim
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user