From 08d5556ab2f104cc2daff59c078c12816b8c9acc Mon Sep 17 00:00:00 2001 From: Ariel D'Alessandro Date: Mon, 10 Apr 2023 10:18:01 +0200 Subject: feat(general): update keymaps --- lua/alpha/telescope/init.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lua/alpha/telescope/init.lua') diff --git a/lua/alpha/telescope/init.lua b/lua/alpha/telescope/init.lua index 28397b0..70ef47f 100644 --- a/lua/alpha/telescope/init.lua +++ b/lua/alpha/telescope/init.lua @@ -84,7 +84,7 @@ function M.find_symbol() end function M.my_plugins() - if vim.fn.isdirectory "~/code/plugins/" == 0 then + if vim.fn.isdirectory(vim.fn.getenv "HOME" .. "/code/plugins/") == 0 then vim.notify("Directory ~/code/plugins does not exists", vim.log.levels.WARN, { title = "Telescope Mappings" }) return end @@ -98,11 +98,11 @@ function M.scratchs() prompt_title = "Scratchs", no_ignore = true, cwd = "~/.config/nvim/lua/scratchs/", - attach_mappings = function (_, map) + attach_mappings = function(_, map) map("i", "", my_actions.create_scratch_file) return true - end + end, } end -- cgit v1.2.3