only set home during telescope config
This commit is contained in:
parent
8003a2df42
commit
d5b129b373
3
init.lua
3
init.lua
@ -1,7 +1,4 @@
|
|||||||
vim.g.mapleader = ','
|
vim.g.mapleader = ','
|
||||||
if vim.loop.os_uname().sysname == 'Windows_NT' then
|
|
||||||
vim.env.HOME = ''
|
|
||||||
end
|
|
||||||
if not vim.g.vscode then
|
if not vim.g.vscode then
|
||||||
require('config.lazy')
|
require('config.lazy')
|
||||||
require('my_keymappings')
|
require('my_keymappings')
|
||||||
|
@ -86,6 +86,10 @@ return {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
config = function()
|
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 actions = require('telescope.actions')
|
||||||
|
|
||||||
local mappingTab = {
|
local mappingTab = {
|
||||||
@ -206,5 +210,8 @@ return {
|
|||||||
vim.api.nvim_win_set_option(0, "number", true)
|
vim.api.nvim_win_set_option(0, "number", true)
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
if vim.loop.os_uname().sysname == 'Windows_NT' then
|
||||||
|
vim.env.HOME = home
|
||||||
|
end
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user