Browse Source

Fixed the TreeSitter configuration and added Context

master
Julio Biason 2 years ago
parent
commit
7e71f1a92f
  1. 11
      nvim/after/plugin/treesitter.lua
  2. 2
      nvim/lua/packager.lua

11
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",
})

2
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")

Loading…
Cancel
Save