Browse Source

Add treesitter-context

master
parent
commit
5ae97f8f74
2 changed files with 29 additions and 9 deletions
  1. +12
    -0
      .config/nvim/lua/config/treesitter-context.lua
  2. +17
    -9
      .config/nvim/lua/packer-plugins.lua

+ 12
- 0
.config/nvim/lua/config/treesitter-context.lua View File

@ -0,0 +1,12 @@
require('treesitter-context').setup{
enable = true,
max_lines = 0,
min_window_height = 0,
line_numbers = true,
multiline_threshold = 20,
trim_scope = 'outer',
mode = 'cursor',
separator = nil,
zindex = 20,
on_attach = nil,
}

+ 17
- 9
.config/nvim/lua/packer-plugins.lua View File

@ -57,6 +57,13 @@ return require('packer').startup(function()
use { 'nvim-treesitter/nvim-treesitter' }
use {
'nvim-treesitter/nvim-treesitter-context',
config = function ()
require('config.treesitter-context')
end
}
use {
'theprimeagen/harpoon',
config = function ()
@ -147,6 +154,16 @@ return require('packer').startup(function()
end
}
use {
'rcarriga/nvim-notify',
config = function ()
require('notify').setup({
background_color = '#000000',
timeout = 3
})
end
}
-- CMD and search at the top
use {
'folke/noice.nvim',
@ -159,15 +176,6 @@ return require('packer').startup(function()
end
}
use {
'rcarriga/nvim-notify',
config = function ()
require('notify').setup({
background_color = '#000000'
})
end
}
-- DB manager
use {
'kristijanhusak/vim-dadbod-ui',


Loading…
Cancel
Save