From 6553a9bd81d385241d96b5041bc90cea92daccf1 Mon Sep 17 00:00:00 2001 From: Alexander Neonxp Kiryukhin Date: Tue, 22 Apr 2025 20:00:40 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A4=D0=B8=D0=BA=D1=81=20Treesitter?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kitty/kitty.conf | 8 +++-- nvim/lua/autocommands.lua | 3 +- nvim/lua/plugins/treesitter.lua | 52 +++++++++++++++++++++++++++++---- zsh/zshrc | 2 +- 4 files changed, 54 insertions(+), 11 deletions(-) diff --git a/kitty/kitty.conf b/kitty/kitty.conf index 378089b..27857f7 100644 --- a/kitty/kitty.conf +++ b/kitty/kitty.conf @@ -27,6 +27,8 @@ include monokai.conf allow_remote_control yes 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 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 diff --git a/nvim/lua/autocommands.lua b/nvim/lua/autocommands.lua index efdace8..4a565db 100644 --- a/nvim/lua/autocommands.lua +++ b/nvim/lua/autocommands.lua @@ -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, diff --git a/nvim/lua/plugins/treesitter.lua b/nvim/lua/plugins/treesitter.lua index ff02ec4..623e808 100644 --- a/nvim/lua/plugins/treesitter.lua +++ b/nvim/lua/plugins/treesitter.lua @@ -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" }, +}) diff --git a/zsh/zshrc b/zsh/zshrc index b71c129..9e23f22 100644 --- a/zsh/zshrc +++ b/zsh/zshrc @@ -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/