1
0

update config to work on windows

This commit is contained in:
Rokas Puzonas 2023-05-11 17:31:02 +03:00
parent c73880bf90
commit db3a1827a4
3 changed files with 6 additions and 3 deletions

View File

@ -1,7 +1,7 @@
return { return {
'jenterkin/vim-autosource', 'jenterkin/vim-autosource',
config = function() config = function()
local user = os.getenv("USER") local data = vim.fn.stdpath("data")
vim.g.autosource_hashdir = '/home/'..user..'/.cache/vim-autosource/hashes' vim.g.autosource_hashdir = data .. '/vim-autosource/hashes'
end end
} }

View File

@ -3,6 +3,9 @@ return {
run = function() require('nvim-treesitter.install').update{ with_sync = true } end, run = function() require('nvim-treesitter.install').update{ with_sync = true } end,
config = function () config = function ()
local treesitter = require("nvim-treesitter.configs") local treesitter = require("nvim-treesitter.configs")
if vim.fn.has("win32") then
require('nvim-treesitter.install').compilers = { "clang" }
end
treesitter.setup{ treesitter.setup{
highlight = { enable = true }, highlight = { enable = true },

View File

@ -42,7 +42,7 @@ return function(use)
"nvim-treesitter/nvim-treesitter", "nvim-treesitter/nvim-treesitter",
"kyazdani42/nvim-web-devicons", "kyazdani42/nvim-web-devicons",
"nvim-telescope/telescope-ui-select.nvim", "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 load_config = true
} }