Фикс Treesitter
This commit is contained in:
parent
0aeec22553
commit
6553a9bd81
4 changed files with 54 additions and 11 deletions
|
@ -27,6 +27,8 @@ include monokai.conf
|
||||||
|
|
||||||
allow_remote_control yes
|
allow_remote_control yes
|
||||||
wayland_titlebar_color system
|
wayland_titlebar_color system
|
||||||
map kitty_mod+k clear_terminal reset active
|
map kitty_mod+k clear_terminal reset active
|
||||||
map kitty_mod+F5 launch --location=hsplit --cwd=current
|
map kitty_mod+F5 launch --location=hsplit --cwd=current
|
||||||
map kitty_mod+F6 launch --location=vsplit --cwd=current
|
map kitty_mod+F6 launch --location=vsplit --cwd=current
|
||||||
|
map ctrl+insert copy_to_clipboard
|
||||||
|
map shift+insert paste_from_clipboard
|
||||||
|
|
|
@ -67,14 +67,13 @@ vim.api.nvim_create_autocmd("BufWinEnter", {
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
|
||||||
local treeapi = require("nvim-tree.api")
|
|
||||||
|
|
||||||
vim.api.nvim_create_autocmd("BufEnter", {
|
vim.api.nvim_create_autocmd("BufEnter", {
|
||||||
callback = function()
|
callback = function()
|
||||||
if vim.bo.filetype == "NvimTree" or vim.fn.expand("%") == "" then
|
if vim.bo.filetype == "NvimTree" or vim.fn.expand("%") == "" then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
vim.schedule(function()
|
vim.schedule(function()
|
||||||
|
local treeapi = require("nvim-tree.api")
|
||||||
treeapi.tree.find_file({
|
treeapi.tree.find_file({
|
||||||
update_root = false,
|
update_root = false,
|
||||||
focus = false,
|
focus = false,
|
||||||
|
|
|
@ -1,5 +1,47 @@
|
||||||
require('nvim-treesitter.configs').setup{
|
require("nvim-treesitter.configs").setup({
|
||||||
ensure_installed = 'all',
|
highlight = { enable = true },
|
||||||
ignore_install = { 'phpdoc' },
|
ensure_installed = {
|
||||||
highlight = { enable = true }
|
"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" },
|
||||||
|
})
|
||||||
|
|
|
@ -24,7 +24,7 @@ antigen apply
|
||||||
# Exports
|
# Exports
|
||||||
|
|
||||||
#export GOPROXY=https://proxy.neonxp.ru
|
#export GOPROXY=https://proxy.neonxp.ru
|
||||||
export GOPRIVATE=devopar.hippoparking.ru
|
export GOPRIVATE=devopar.hippoparking.ru,gitlab.sovcombank.group
|
||||||
export EDITOR="nvim"
|
export EDITOR="nvim"
|
||||||
#export DOCKER_HOST=unix://$XDG_RUNTIME_DIR/docker.sock
|
#export DOCKER_HOST=unix://$XDG_RUNTIME_DIR/docker.sock
|
||||||
export ANDROID_HOME=$HOME/projects/android/
|
export ANDROID_HOME=$HOME/projects/android/
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue