RepositoryJanet
nvim-treesitter

nvim-treesitter/nvim-treesitter-context

Show code context

3.2kstars
245forks
11issues
3views

Thành tựu nổi bật

Những danh hiệu mới nhất của dự án

1
TINIX TRENDING·Chủ đề: vim-plugin

#1 Repository Của Tuần

4
TINIX TRENDING·Chủ đề: neovim-plugin

#4 Repository Của Tuần

6
TINIX TRENDING·Chủ đề: vim

#6 Repository Của Tuần

🧭 nvim-treesitter-context: Ngữ cảnh mã nguồn thông minh trên Neovim

Plugin nhẹ thay thế context.vim, hiển thị ngữ cảnh mã nguồn quanh con trỏ bằng treesitter.

nvim-treesitter-context là plugin cho Neovim, hiển thị ngữ cảnh mã nguồn xung quanh vị trí con trỏ. Dựa trên treesitter, plugin này nhẹ và hiệu quả hơn so với context.vim truyền thống.

✨ Điểm nổi bật

  • Tích hợp treesitter: Sử dụng parsers từ nvim-treesitter để phân tích ngữ cảnh chính xác.
  • Hỗ trợ ngôn ngữ đa dạng: Hơn 90 ngôn ngữ được hỗ trợ, do cộng đồng duy trì.
  • Yêu cầu tối thiểu: Neovim >= v0.9.0, hỗ trợ thêm tag compat/0.6 cho phiên bản cũ.
  • Cài đặt parser riêng: Hỗ trợ cài đặt parsers ngôn ngữ khác nhau qua nvim-treesitter.
  • Giao diện tùy chỉnh: Có thể tùy chỉnh vị trí, kiểu hiển thị và phong cách.

💡 Vì sao đáng chú ý

Khác với context.vim sử dụng regex, nvim-treesitter-context dựa trên cú pháp treesitter thực sự, mang lại độ chính xác cao hơn khi xác định ngữ cảnh mã nguồn. Phù hợp cho lập trình viên làm việc với nhiều ngôn ngữ và cần thông tin ngữ cảnh nhanh chóng ngay trong editor.


#Neovim #Vim #Treesitter #Plugin #TiniX

Similar Projects

Discover other similar projects and AI models.

RepositoryTypeScript
neoclide/coc.nvim

Nodejs extension host for vim & neovim, load extensions like VSCode and host language servers.

25.1k
Nov 12, 2026
RepositoryVim Script
dense-analysis/ale

Check syntax in Vim/Neovim asynchronously and fix files, with Language Server Protocol (LSP) support

14.0k
Oct 20, 2026
RepositoryLua
catppuccin/nvim

🍨 Soothing pastel theme for Neovim

7.7k
Oct 16, 2026
RepositoryTeX
lervag/vimtex

VimTeX: A modern Vim and neovim filetype plugin for LaTeX files.

6.4k
Nov 13, 2026
RepositoryVim Script
neovim/neovim

Vim-fork focused on extensibility and usability

104.0k
Nov 23, 2026
RepositoryGo
junegunn/fzf

:cherry_blossom: A command-line fuzzy finder

84.4k
Nov 23, 2026
RepositoryLua
NvChad/NvChad

Blazing fast Neovim framework providing solid defaults and a beautiful UI, enhancing your neovim experience.

28.6k
Oct 24, 2026
RepositoryLua
LazyVim/LazyVim

Neovim config for the lazy

27.9k
Nov 8, 2026
RepositoryLua
folke/lazy.nvim

💤 A modern plugin manager for Neovim

21.7k
Jun 29, 2026