Skip to content

Commit

Permalink
refactor: rename vim folder to jrb
Browse files Browse the repository at this point in the history
  • Loading branch information
JRasmusBm committed May 24, 2024
1 parent 2efdb11 commit f749c15
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion git/gitignore_global
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.nvimlog
.rgignore
node_modules
.vim/
.jrb/
.venv/
.vimspector.json
.tmux
Expand Down
2 changes: 1 addition & 1 deletion vim/after/plugin/dotfiles.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ vim.cmd [[
:command! Grc exec "e $DOTFILES/git/gitconfig"
:command! Trc exec "e $DOTFILES/tmux/tmux.conf"
:command! Frc exec "e $DOTFILES/vim/ftplugin/" . &ft . ".lua"
:command! Prc e ./.vim/init.lua
:command! Prc e ./.jrb
:command! Esq e ./temp.sql
]]
7 changes: 4 additions & 3 deletions vim/after/plugin/local_config.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
local local_config = vim.fn.getcwd() .. "/.vim/init.lua"
if vim.loop.fs_stat(local_config) then
vim.cmd("source " .. local_config)
local local_lua_config = vim.fn.getcwd() .. "/.jrb/init.lua"

if vim.loop.fs_stat(local_lua_config) then
vim.cmd("source " .. local_lua_config)
end

0 comments on commit f749c15

Please sign in to comment.