only set home during telescope config

This commit is contained in:
Hartmann 2023-07-04 10:56:33 +02:00
parent 8003a2df42
commit d5b129b373
2 changed files with 7 additions and 3 deletions

View File

@ -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')

View File

@ -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
}