srctree

Gregory Mullen parent a621efc4 01ae30e2
vim add treesitter conf and disable for zig and md

zls seems to create better colors than treesitter (maybe faster too) the default markdown highlighter is much better (to me)
.config/nvim/init.vim added: 29, removed: 3, total 26
@@ -301,4 +301,4 @@ EOF
source ~/.config/nvim/subl_binds.vim
"source ~/.config/nvim/nvim-cmp-conf.vim
source ~/.config/nvim/zls.vim
 
source ~/.config/nvim/treesitter.lua
 
filename was Deleted added: 29, removed: 3, total 26
@@ -0,0 +1,26 @@
require'nvim-treesitter.configs'.setup {
-- A list of parser names, or "all" (the five listed parsers should always be installed)
ensure_installed = { "c", "lua", "vim", "help", "query", "zig" },
sync_install = false,
-- Recommendation: set to false if you don't have `tree-sitter` CLI installed locally
auto_install = false,
ignore_install = { "javascript" },
highlight = {
enable = true,
disable = { "markdown", "zig", },
-- Or use a function for more flexibility, e.g. to disable slow treesitter highlight for large files
-- disable = function(lang, buf)
-- local max_filesize = 100 * 1024 -- 100 KB
-- local ok, stats = pcall(vim.loop.fs_stat, vim.api.nvim_buf_get_name(buf))
-- if ok and stats and stats.size > max_filesize then
-- return true
-- end
-- end,
 
-- Setting this to true will run `:h syntax` and tree-sitter at the same time.
-- Set this to `true` if you depend on 'syntax' being enabled (like for indentation).
-- Using this option may slow down your editor, and you may see some duplicate highlights.
-- Instead of true it can also be a list of languages
additional_vim_regex_highlighting = false,
},
}