Фикс Treesitter

This commit is contained in:
Alexander Neonxp Kiryukhin 2025-04-22 20:00:40 +03:00
parent 0aeec22553
commit 6553a9bd81
Signed by: NeonXP
SSH key fingerprint: SHA256:SVt7TjxbVc87m1QYaQziOJ0N3OCFURv2g76gD/UTTXI
4 changed files with 54 additions and 11 deletions

View file

@ -30,3 +30,5 @@ wayland_titlebar_color system
map kitty_mod+k clear_terminal reset active
map kitty_mod+F5 launch --location=hsplit --cwd=current
map kitty_mod+F6 launch --location=vsplit --cwd=current
map ctrl+insert copy_to_clipboard
map shift+insert paste_from_clipboard

View file

@ -67,14 +67,13 @@ vim.api.nvim_create_autocmd("BufWinEnter", {
end,
})
local treeapi = require("nvim-tree.api")
vim.api.nvim_create_autocmd("BufEnter", {
callback = function()
if vim.bo.filetype == "NvimTree" or vim.fn.expand("%") == "" then
return
end
vim.schedule(function()
local treeapi = require("nvim-tree.api")
treeapi.tree.find_file({
update_root = false,
focus = false,

View file

@ -1,5 +1,47 @@
require('nvim-treesitter.configs').setup{
ensure_installed = 'all',
ignore_install = { 'phpdoc' },
highlight = { enable = true }
}
require("nvim-treesitter.configs").setup({
highlight = { enable = true },
ensure_installed = {
"c",
"lua",
"python",
"bash",
"go",
"html",
"css",
"javascript",
"typescript",
"git_config",
"git_rebase",
"gitattributes",
"gitcommit",
"gitignore",
"gomod",
"gosum",
"gotmpl",
"gowork",
"hjson",
"ini",
"json",
"json5",
"jsonnet",
"latex",
"make",
"markdown",
"markdown_inline",
"nginx",
"proto",
"rust",
"templ",
"todotxt",
"toml",
"tsx",
"typescript",
"vim",
"vimdoc",
"xml",
"yaml",
"sql",
"ssh_config",
},
ignore_install = { "gdhsader", "phpdoc" },
})

View file

@ -24,7 +24,7 @@ antigen apply
# Exports
#export GOPROXY=https://proxy.neonxp.ru
export GOPRIVATE=devopar.hippoparking.ru
export GOPRIVATE=devopar.hippoparking.ru,gitlab.sovcombank.group
export EDITOR="nvim"
#export DOCKER_HOST=unix://$XDG_RUNTIME_DIR/docker.sock
export ANDROID_HOME=$HOME/projects/android/