feat: addad chad&nnvim tree extensions (#167)
* feat: addad chad&nnvim tree extensions * fix: updated all extensions * applied suggestions
This commit is contained in:
parent
1b81b0021f
commit
3e94f2786f
|
@ -312,6 +312,8 @@ extensions = { 'fzf' }
|
||||||
* fugitive
|
* fugitive
|
||||||
* fzf
|
* fzf
|
||||||
* nerdtree
|
* nerdtree
|
||||||
|
* chadtree
|
||||||
|
* nvim-tree
|
||||||
|
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
|
|
|
@ -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
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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
|
Loading…
Reference in New Issue