Fix phpdoc treesitter being broken on MacOS arm64 and add poetry path to PATH
This commit is contained in:
parent
56a572e55f
commit
3c33d3d1f0
2 changed files with 20 additions and 2 deletions
|
@ -31,6 +31,10 @@ if [ -d "${HOME}/.local/bin" ]; then
|
||||||
export PATH="${HOME}/.local/bin:$PATH"
|
export PATH="${HOME}/.local/bin:$PATH"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ -d "${HOME}/.poetry/bin" ]; then
|
||||||
|
export PATH="${HOME}/.poetry/bin:$PATH"
|
||||||
|
fi
|
||||||
|
|
||||||
. "$HOME/.cargo/env" 2>/dev/null
|
. "$HOME/.cargo/env" 2>/dev/null
|
||||||
|
|
||||||
if command -v go &> /dev/null; then
|
if command -v go &> /dev/null; then
|
||||||
|
|
|
@ -1,14 +1,28 @@
|
||||||
require'nvim-treesitter.configs'.setup {
|
require'nvim-treesitter.configs'.setup {
|
||||||
ensure_installed = "all", -- one of "all", "maintained" (parsers with maintainers), or a list of languages
|
ensure_installed = "all", -- one of "all", "maintained" (parsers with maintainers), or a list of languages
|
||||||
sync_install = false, -- install languages synchronously (only applied to `ensure_installed`)
|
sync_install = false, -- install languages synchronously (only applied to `ensure_installed`)
|
||||||
ignore_install = {}, -- List of parsers to ignore installing
|
ignore_install = {"phpdoc", "tree-sitter-phpdoc"}, -- List of parsers to ignore installing
|
||||||
|
autopairs = {
|
||||||
|
enable = true,
|
||||||
|
},
|
||||||
highlight = {
|
highlight = {
|
||||||
enable = true, -- false will disable the whole extension
|
enable = true, -- false will disable the whole extension
|
||||||
disable = {}, -- list of language that will be disabled
|
disable = {"phpdoc", "tree-sitter-phpdoc"}, -- list of language that will be disabled
|
||||||
-- Setting this to true will run `:h syntax` and tree-sitter at the same time.
|
-- 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).
|
-- 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.
|
-- 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
|
-- Instead of true it can also be a list of languages
|
||||||
additional_vim_regex_highlighting = false,
|
additional_vim_regex_highlighting = false,
|
||||||
},
|
},
|
||||||
|
rainbow = {
|
||||||
|
enable = true,
|
||||||
|
extended_mode = true,
|
||||||
|
},
|
||||||
|
indent = {
|
||||||
|
enable = true,
|
||||||
|
},
|
||||||
|
context_commentstring = {
|
||||||
|
enable = true,
|
||||||
|
enable_autocmd = true,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue