update readme instructions
This commit is contained in:
@@ -2,11 +2,15 @@ HCL and Terraform parsers that treat `{%` as comment lines for... reasons. iykyk
|
|||||||
|
|
||||||
# Neovim usage with the `nvim-treesitter` plugin
|
# Neovim usage with the `nvim-treesitter` plugin
|
||||||
|
|
||||||
|
Clone this repo somewhere then add this to your config:
|
||||||
|
|
||||||
```lua
|
```lua
|
||||||
local configs = require("nvim-treesitter.configs")
|
local configs = require("nvim-treesitter.configs")
|
||||||
local parser_config = require("nvim-treesitter.parsers").get_parser_configs()
|
local parser_config = require("nvim-treesitter.parsers").get_parser_configs()
|
||||||
|
|
||||||
local jhcl_repo = "https://code.buildbetter.boats/jenterkin/tree-sitter-jhcl"
|
-- for some reason you can't use the repo url here. it won't override the
|
||||||
|
-- default tf and hcl parsers.
|
||||||
|
local jhcl_repo = "~/path/to/this/repo"
|
||||||
|
|
||||||
parser_config.hcl = {
|
parser_config.hcl = {
|
||||||
install_info = {
|
install_info = {
|
||||||
|
|||||||
Reference in New Issue
Block a user