feat: addad chad&nnvim tree extensions (#167)

* feat: addad chad&nnvim tree extensions

* fix: updated all extensions

* applied suggestions
This commit is contained in:
Hubert Pelczarski 2021-04-12 05:03:25 -07:00 committed by GitHub
parent 1b81b0021f
commit 3e94f2786f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 31 additions and 1 deletions

View File

@ -312,6 +312,8 @@ extensions = { 'fzf' }
* fugitive * fugitive
* fzf * fzf
* nerdtree * nerdtree
* chadtree
* nvim-tree
</details> </details>

View File

@ -0,0 +1,13 @@
-- Copyright (c) 2020-2021 hoob3rt
-- MIT license, see LICENSE for more details.
local nerdtree = require('lualine.extensions.nerdtree')
local M = {}
M.sections = nerdtree.sections
M.inactive_sections = nerdtree.inactive_sections
M.filetypes = {'CHADTree'}
return M

View File

@ -1,8 +1,10 @@
-- Copyright (c) 2020-2021 hoob3rt -- Copyright (c) 2020-2021 hoob3rt
-- MIT license, see LICENSE for more details. -- MIT license, see LICENSE for more details.
local function get_short_cwd() return vim.fn.fnamemodify(vim.fn.getcwd(), ':~') end
local M = {} local M = {}
M.sections = {lualine_a = {vim.fn.getcwd}} M.sections = {lualine_a = {get_short_cwd}}
M.inactive_sections = M.sections M.inactive_sections = M.sections

View File

@ -0,0 +1,13 @@
-- Copyright (c) 2020-2021 hoob3rt
-- MIT license, see LICENSE for more details.
local nerdtree = require('lualine.extensions.nerdtree')
local M = {}
M.sections = nerdtree.sections
M.inactive_sections = nerdtree.inactive_sections
M.filetypes = {'NvimTree'}
return M