From 7e71f1a92f53cc039a6d0406f0db02fcce70f0e5 Mon Sep 17 00:00:00 2001 From: Julio Biason Date: Tue, 6 Dec 2022 15:24:32 -0300 Subject: [PATCH] Fixed the TreeSitter configuration and added Context --- nvim/after/plugin/treesitter.lua | 11 +++++++++++ nvim/lua/packager.lua | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 nvim/after/plugin/treesitter.lua diff --git a/nvim/after/plugin/treesitter.lua b/nvim/after/plugin/treesitter.lua new file mode 100644 index 0000000..8653a3b --- /dev/null +++ b/nvim/after/plugin/treesitter.lua @@ -0,0 +1,11 @@ +require("nvim-treesitter.configs").setup({ + ensure_installed = { "python", "rust" }, + sync_install = false, + highlight = { + enable = true, + } +}) + +require("treesitter-context").setup({ + mode = "topline", +}) diff --git a/nvim/lua/packager.lua b/nvim/lua/packager.lua index a685654..5dbd0b4 100644 --- a/nvim/lua/packager.lua +++ b/nvim/lua/packager.lua @@ -14,7 +14,7 @@ return require("packer").startup(function(use) use("nvim-treesitter/nvim-treesitter", { run = ":TSUpdate" }) - use("romgrk/nvim-treesitter-context") + use("nvim-treesitter/nvim-treesitter-context") use("nvim-lualine/lualine.nvim")