Updated install.bat

tried to mess with treesitter
This commit is contained in:
William McVicar
2024-01-07 00:54:28 +01:00
parent b1c702054c
commit 37bd8c801e
3 changed files with 8 additions and 2 deletions

1
install.bat Normal file
View File

@@ -0,0 +1 @@
mklink /J %LOCALAPPDATA%\nvim .\nvim

View File

@@ -2,10 +2,16 @@ return {
"nvim-treesitter/nvim-treesitter", "nvim-treesitter/nvim-treesitter",
build = ":TSUpdate", build = ":TSUpdate",
config = function() config = function()
local install = require("nvim-treesitter.install")
local configs = require("nvim-treesitter.configs") local configs = require("nvim-treesitter.configs")
install = {
compilers = { clang },
prefer_git = false,
}
configs.setup({ configs.setup({
ensure_installed = { "c", "cpp", "lua", "vim", "vimdoc", "cmake" }, ensure_installed = { "c", "cpp", "lua", "vim", "vimdoc", "cmake", "query" },
sync_install = false, sync_install = false,
highlight = { enable = true }, highlight = { enable = true },
indent = { enable = true }, indent = { enable = true },

View File

@@ -1,4 +1,3 @@
vim.cmd("syntax on")
vim.cmd("set expandtab") vim.cmd("set expandtab")
vim.cmd("set tabstop=4") vim.cmd("set tabstop=4")
vim.cmd("set softtabstop=4") vim.cmd("set softtabstop=4")