Removed treesitter

This commit is contained in:
twig 2023-04-10 21:26:16 -07:00
parent aa5fa13989
commit 36250312b7
2 changed files with 45 additions and 44 deletions

View File

@ -15,35 +15,35 @@ vim.opt.expandtab = true
vim.opt.smartindent = true vim.opt.smartindent = true
vim.opt.wrap = false vim.opt.wrap = false
require('nvim-treesitter.configs').setup { --require('nvim-treesitter.configs').setup {
ensure_installed = { "c", "cpp", "lua", "zig", "go", "sql" }, -- ensure_installed = { "c", "cpp", "lua", "zig", "go", "sql" },
sync_install = false, -- sync_install = false,
auto_install = false, -- auto_install = false,
highlight = { -- highlight = {
enable = true, -- enable = true,
additional_vim_regex_highlighting = false, -- additional_vim_regex_highlighting = false,
}, -- },
incremental_selection = { -- incremental_selection = {
}, -- },
indent = { -- indent = {
enable = true, -- enable = true,
}, -- },
playground = { -- playground = {
enabled = true, -- enabled = true,
persist_queries = false, -- persist_queries = false,
} -- }
} --}
require('treesitter-context').setup { --require('treesitter-context').setup {
enable = true, -- enable = true,
max_lines = 0, -- max_lines = 0,
min_window_height = 0, -- min_window_height = 0,
patterns = { -- patterns = {
zig = { -- zig = {
'fn', -- 'fn',
'struct', -- 'struct',
}, -- },
}, -- },
} --}
require('nvim-autopairs').setup{} require('nvim-autopairs').setup{}
require('telescope').setup{ require('telescope').setup{
defaults = { defaults = {
@ -59,7 +59,7 @@ require('telescope').setup{
extensions = { extensions = {
} }
} }
local parser_config = require "nvim-treesitter.parsers".get_parser_configs() --local parser_config = require "nvim-treesitter.parsers".get_parser_configs()
--parser_config.zimbu = { --parser_config.zimbu = {
-- install_info = { -- install_info = {
-- url = "D:/Code/zig/treesitter", -- url = "D:/Code/zig/treesitter",
@ -75,15 +75,15 @@ vim.filetype.add({
} }
}) })
if (vim.loop.os_uname().sysname == "Windows_NT") then --if (vim.loop.os_uname().sysname == "Windows_NT") then
url = "D:\\Code\\odin\\tree-sitter-odin" -- url = "D:\\Code\\odin\\tree-sitter-odin"
else --else
url = "~/code/odin/tree-sitter-odin" -- url = "~/code/odin/tree-sitter-odin"
end --end
parser_config.odin = { --parser_config.odin = {
install_info = { -- install_info = {
url = url, -- url = url,
files = {"src/parser.c"} -- files = {"src/parser.c"}
}, -- },
filetype = "odin", -- filetype = "odin",
} --}

View File

@ -9,11 +9,12 @@ return require('packer').startup(function(use)
--use { 'tomasr/molokai' } --use { 'tomasr/molokai' }
use 'morhetz/gruvbox' use 'morhetz/gruvbox'
-- Treesitter -- Treesitter
use { 'nvim-treesitter/nvim-treesitter' } --use { 'nvim-treesitter/nvim-treesitter' }
use 'nvim-treesitter/nvim-treesitter-context' --use 'nvim-treesitter/nvim-treesitter-context'
-- Utils -- Utils
use 'neovim/nvim-lspconfig' use 'neovim/nvim-lspconfig'
use { 'nvim-telescope/telescope.nvim', tag = '0.1.0', requires = {{'nvim-lua/plenary.nvim'}} } use { 'nvim-telescope/telescope.nvim', tag = '0.1.0', requires = {{'nvim-lua/plenary.nvim'}} }
use { 'windwp/nvim-autopairs' } use { 'windwp/nvim-autopairs' }
use { 'nvim-treesitter/playground', requires = {{'nvim-treesitter/nvim-treesitter'}} } use { 'nvim-treesitter/playground', requires = {{'nvim-treesitter/nvim-treesitter'}} }
use 'sheerun/vim-polyglot'
end) end)