local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim" if not vim.loop.fs_stat(lazypath) then vim.fn.system({ "git", "clone", "--filter=blob:none", "https://github.com/folke/lazy.nvim.git", "--branch=stable", -- latest stable release lazypath, }) end vim.opt.rtp:prepend(lazypath) require("lazy").setup({ "nvim-treesitter/nvim-treesitter", "morhetz/gruvbox", "neovim/nvim-lspconfig", { "nvim-telescope/telescope.nvim", dependencies = {"nvim-lua/plenary.nvim"} }, "windwp/nvim-autopairs", {"sheerun/vim-polyglot", enabled=false}, {"habamax/vim-godot", enabled=false }, }) require('statusline') --require('packer_init') require('keybindings') --vim.opt.guicursor = " " vim.opt.nu = true vim.opt.relativenumber = true vim.opt.tabstop = 4 vim.opt.softtabstop = 4 vim.opt.shiftwidth = 4 vim.opt.expandtab = true vim.opt.smartindent = true vim.opt.wrap = false require('nvim-treesitter.configs').setup { ensure_installed = { "c", "cpp", "lua", "go", "gdscript", "godot_resource", "gdshader", "odin", "python", "sql", "zig" }, sync_install = false, auto_install = false, highlight = { enable = true, additional_vim_regex_highlighting = false, }, incremental_selection = { }, indent = { enable = true, }, playground = { enabled = true, persist_queries = false, } } --require('treesitter-context').setup { -- enable = true, -- max_lines = 0, -- min_window_height = 0, -- patterns = { -- zig = { -- 'fn', -- 'struct', -- }, -- }, --} require('nvim-autopairs').setup{} require('telescope').setup{ defaults = { file_ignore_patterns = { "%.uid", "%.png", "%.gltf", "%.import", "%.glb" }, }, pickers = { find_files = { --theme = "dropdown", }, git_files = { --theme = "dropdown", } }, extensions = { }, } --local parser_config = require "nvim-treesitter.parsers".get_parser_configs() --parser_config.zimbu = { -- install_info = { -- url = "D:/Code/zig/treesitter", -- files = {"src/parser.c"}, -- generate_requires_npm = true, -- requires_generate_from_grammer = true, -- }, -- filetype = "zu", --} vim.filetype.add({ extension = { odin = "odin" } }) --if (vim.loop.os_uname().sysname == "Windows_NT") then -- url = "D:\\Code\\odin\\tree-sitter-odin" --else -- url = "~/code/odin/tree-sitter-odin" --end --parser_config.odin = { -- install_info = { -- url = url, -- files = {"src/parser.c"} -- }, -- filetype = "odin", --} local pipepath = vim.fn.stdpath("cache") .. "/server.pipe" if not vim.loop.fs_stat(pipepath) then vim.fn.serverstart(pipepath) end