config(nvim): remove treesitter

main
sudo pacman -Syu 2024-05-08 14:19:02 +07:00
parent 9b291821e3
commit 047ce3f847
2 changed files with 2 additions and 43 deletions

View File

@ -153,9 +153,6 @@ require("lazy").setup({
DiagnosticSignError = color_eva,
}
end,
integrations = {
treesitter_context = false,
},
})
vim.cmd("colorscheme catppuccin")
@ -452,46 +449,6 @@ require("lazy").setup({
end,
},
-- https://github.com/nvim-treesitter/nvim-treesitter
{
"nvim-treesitter/nvim-treesitter",
build = {
":TSUpdate",
},
config = function()
require("nvim-treesitter.configs").setup({
ensure_installed = {
"go",
"lua",
"markdown",
"proto",
"python",
},
highlight = {
enabled = true,
disable = function(lang, bufnr)
-- Skip big files with many lines
return vim.api.nvim_buf_line_count(bufnr) > 10000
end,
},
})
end,
},
-- https://github.com/nvim-treesitter/nvim-treesitter-context
{
"nvim-treesitter/nvim-treesitter-context",
dependencies = {
"nvim-treesitter/nvim-treesitter",
},
config = function()
require("treesitter-context").setup({
enable = true,
max_lines = 2,
})
end,
},
-- https://github.com/neovim/nvim-lspconfig
{
"neovim/nvim-lspconfig",

View File

@ -140,6 +140,8 @@ if command -v pyenv &>/dev/null; then
export PYENV_ROOT="$HOME/.pyenv"
[[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)"
export PYTHON_CONFIGURE_OPTS="--enable-framework --enable-optimizations --with-lto"
export PYTHON_CFLAGS='-march=native -mtune=native'
fi
# https://github.com/ankitpokhrel/jira-cli