update config to work on windows
This commit is contained in:
parent
c73880bf90
commit
db3a1827a4
@ -1,7 +1,7 @@
|
||||
return {
|
||||
'jenterkin/vim-autosource',
|
||||
config = function()
|
||||
local user = os.getenv("USER")
|
||||
vim.g.autosource_hashdir = '/home/'..user..'/.cache/vim-autosource/hashes'
|
||||
local data = vim.fn.stdpath("data")
|
||||
vim.g.autosource_hashdir = data .. '/vim-autosource/hashes'
|
||||
end
|
||||
}
|
||||
|
@ -3,6 +3,9 @@ return {
|
||||
run = function() require('nvim-treesitter.install').update{ with_sync = true } end,
|
||||
config = function ()
|
||||
local treesitter = require("nvim-treesitter.configs")
|
||||
if vim.fn.has("win32") then
|
||||
require('nvim-treesitter.install').compilers = { "clang" }
|
||||
end
|
||||
|
||||
treesitter.setup{
|
||||
highlight = { enable = true },
|
||||
|
@ -42,7 +42,7 @@ return function(use)
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
"kyazdani42/nvim-web-devicons",
|
||||
"nvim-telescope/telescope-ui-select.nvim",
|
||||
{"nvim-telescope/telescope-fzf-native.nvim", run = "make"}
|
||||
{"nvim-telescope/telescope-fzf-native.nvim", run = "make", disable = vim.fn.has("win32")}
|
||||
},
|
||||
load_config = true
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user