From 550061ede5e1674c9e1aa09e899abd08693367a5 Mon Sep 17 00:00:00 2001 From: aleidk Date: Wed, 25 Oct 2023 20:03:17 -0300 Subject: [PATCH] add ts context to nvim --- config/nvim/lazy-lock.json | 1 + config/nvim/lua/aleidk/options.lua | 2 +- config/nvim/lua/aleidk/plugins/init.lua | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/config/nvim/lazy-lock.json b/config/nvim/lazy-lock.json index 319f643..8d097cd 100644 --- a/config/nvim/lazy-lock.json +++ b/config/nvim/lazy-lock.json @@ -36,6 +36,7 @@ "nvim-spider": { "branch": "main", "commit": "28ea1139b3b566187813684a4d37e3da0ce2b888" }, "nvim-tree.lua": { "branch": "master", "commit": "78a9ca5ed6557f29cd0ce203df44213e54bfabb9" }, "nvim-treesitter": { "branch": "master", "commit": "107e61afb7129d637ea6c3c68b97a22194b0bf16" }, + "nvim-treesitter-context": { "branch": "master", "commit": "8aa32aa6b84dda357849dbc0f775e69f2e04c041" }, "nvim-treesitter-textobjects": { "branch": "master", "commit": "eb208bfdfcf76efea0424747e23e44641e13aaa6" }, "nvim-ts-autotag": { "branch": "main", "commit": "6be1192965df35f94b8ea6d323354f7dc7a557e4" }, "nvim-ts-context-commentstring": { "branch": "main", "commit": "92e688f013c69f90c9bbd596019ec10235bc51de" }, diff --git a/config/nvim/lua/aleidk/options.lua b/config/nvim/lua/aleidk/options.lua index c2de18f..c7d641a 100644 --- a/config/nvim/lua/aleidk/options.lua +++ b/config/nvim/lua/aleidk/options.lua @@ -70,7 +70,7 @@ opt.number = true -- Print line number opt.pumblend = 10 -- Popup blend opt.pumheight = 10 -- Maximum number of entries in a popup opt.relativenumber = true -- Relative line numbers -opt.scrolloff = 4 -- Lines of context +opt.scrolloff = 8 -- Lines of context opt.sessionoptions = { "buffers", "curdir", "tabpages", "winsize" } opt.shiftround = true -- Round indent opt.shiftwidth = 2 -- Size of an indent diff --git a/config/nvim/lua/aleidk/plugins/init.lua b/config/nvim/lua/aleidk/plugins/init.lua index 5bb4608..c2ec86a 100644 --- a/config/nvim/lua/aleidk/plugins/init.lua +++ b/config/nvim/lua/aleidk/plugins/init.lua @@ -44,4 +44,5 @@ return { require("illuminate").configure(opts) end, }, + { "nvim-treesitter/nvim-treesitter-context" }, }