From 8634516e688c4b05a20334881ad3d48085d05f7b Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Mon, 7 Aug 2023 09:47:03 +0100 Subject: [PATCH] refactor: restructure my Code directory I recently restructed the contents of my `~/Code` directory so that repositories are grouped by their provider and organisation. For example, my `dotfiles` are now located at `~/Code/github.com/opdavies/dotfiles`. Likewise, `build-configs` is now located at `~/Code/github.com/OliverDaviesLtd/build-configs` as it's within the `OliverDaviesLtd` organisation. As well as `~/Code/github.com`, I also have `~/Code/bitbucket.org` for Bitbucket repositories. These are also grouped within subdirectories for each organisation. This change means I need to update any reference to the old `dotfiles` location to the new one and I can update the `t` function to adjust the min and max depth it uses to find directories. --- after/plugin/luasnip.lua | 2 +- lua/opdavies/telescope/init.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/after/plugin/luasnip.lua b/after/plugin/luasnip.lua index 08b59c6..929714e 100644 --- a/after/plugin/luasnip.lua +++ b/after/plugin/luasnip.lua @@ -92,4 +92,4 @@ imap { end, } -nmap { "s", "source ~/Code/dotfiles/config/neovim/after/plugin/luasnip.lua" } +nmap { "s", "source ~/Code/github.com/opdavies/dotfiles/config/neovim/after/plugin/luasnip.lua" } diff --git a/lua/opdavies/telescope/init.lua b/lua/opdavies/telescope/init.lua index 048779f..147d413 100644 --- a/lua/opdavies/telescope/init.lua +++ b/lua/opdavies/telescope/init.lua @@ -39,7 +39,7 @@ end function M.edit_neovim() local opts = { - cwd = "~/Code/dotfiles/config/neovim", + cwd = "~/Code/github.com/opdavies/dotfiles/config/neovim", find_command = { "rg", "--no-ignore", "--files", "--follow" }, path_display = { "shorten" }, prompt_title = "~ dotfiles ~",