From 9a46a94827825e8fce867ec06ee0bfb06f3aecbf Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Sat, 30 Apr 2022 20:53:00 +0200 Subject: [PATCH] nvim: Change blankline, Update treesitter settings Updated treesitter setting to remove use of deprecated 'maintained' option and simply replaced it to use 'all' treesitter syntaxes (haven't had a problem with it so far). Changed blankline options slightly to remove annoying animations and quick switching of which blankline it shows depending on where my cursor is -- both proved to be too much of a distraction when I just need to interact with the indentation context every now and again and it should just allow me a quick glance at the indentation level the rest of the time. --- nvim/.config/nvim/lua/plug/_mini.lua | 7 ++++++- nvim/.config/nvim/lua/plug/_treesitter.lua | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/nvim/.config/nvim/lua/plug/_mini.lua b/nvim/.config/nvim/lua/plug/_mini.lua index 15a498c..c0e78c7 100644 --- a/nvim/.config/nvim/lua/plug/_mini.lua +++ b/nvim/.config/nvim/lua/plug/_mini.lua @@ -1,2 +1,7 @@ require('mini.comment').setup() -require('mini.indentscope').setup({symbol = "│"}) +require('mini.indentscope').setup({ + symbol = "│", + draw = {animation = require('mini.indentscope').gen_animation('none')}, + options = {indent_at_cursor = false} +}) +require('mini.trailspace').setup() diff --git a/nvim/.config/nvim/lua/plug/_treesitter.lua b/nvim/.config/nvim/lua/plug/_treesitter.lua index 64b0513..22072a3 100644 --- a/nvim/.config/nvim/lua/plug/_treesitter.lua +++ b/nvim/.config/nvim/lua/plug/_treesitter.lua @@ -1,6 +1,6 @@ require'nvim-treesitter.configs'.setup { -- one of "all", "maintained" (parsers with maintainers), or a list of languages - ensure_installed = "maintained", + ensure_installed = "all", highlight = {enable = true}, incremental_selection = {enable = true}, textobjects = {enable = true},