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


Loading…
Cancel
Save