diff --git a/init.lua b/init.lua index 66e8837..93e408b 100644 --- a/init.lua +++ b/init.lua @@ -1,7 +1,4 @@ vim.g.mapleader = ',' -if vim.loop.os_uname().sysname == 'Windows_NT' then - vim.env.HOME = '' -end if not vim.g.vscode then require('config.lazy') require('my_keymappings') diff --git a/lua/plugins/telescope.lua b/lua/plugins/telescope.lua index 257b782..bf13c92 100644 --- a/lua/plugins/telescope.lua +++ b/lua/plugins/telescope.lua @@ -86,6 +86,10 @@ return { }, }, config = function() + if vim.loop.os_uname().sysname == 'Windows_NT' then + vim.env.HOME = '' + end + local home = vim.env.HOME local actions = require('telescope.actions') local mappingTab = { @@ -206,5 +210,8 @@ return { vim.api.nvim_win_set_option(0, "number", true) end, }) + if vim.loop.os_uname().sysname == 'Windows_NT' then + vim.env.HOME = home + end end }