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.wrap = false
require('nvim-treesitter.configs').setup {
ensure_installed = { "c", "cpp", "lua", "zig", "go", "sql" },
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-treesitter.configs').setup {
-- ensure_installed = { "c", "cpp", "lua", "zig", "go", "sql" },
-- 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 = {
@ -59,7 +59,7 @@ require('telescope').setup{
extensions = {
}
}
local parser_config = require "nvim-treesitter.parsers".get_parser_configs()
--local parser_config = require "nvim-treesitter.parsers".get_parser_configs()
--parser_config.zimbu = {
-- install_info = {
-- url = "D:/Code/zig/treesitter",
@ -75,15 +75,15 @@ vim.filetype.add({
}
})
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",
}
--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",
--}

View File

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