require('treesitter-context').setup{ enable = true, -- Enable this plugin (Can be enabled/disabled later via commands) throttle = true, -- Throttles plugin updates (may improve performance) max_lines = 0, -- How many lines the window should span. Values <= 0 mean no limit. patterns = { -- Match patterns for TS nodes. These get wrapped to match at word boundaries. -- For all filetypes default = { 'class', 'function', 'method', 'for', 'while', -- 'if', -- 'switch', -- 'case', }, rust = { 'loop_expression', 'impl_item', }, }, }