fix(mappings): load nvim tree mappings always
This commit is contained in:
parent
57915adac7
commit
988b14ec9e
2 changed files with 6 additions and 1 deletions
|
@ -1,4 +1,10 @@
|
||||||
local map = require('cosmic.utils').map
|
local map = require('cosmic.utils').map
|
||||||
|
local user_plugins = require('cosmic.config.plugins')
|
||||||
|
|
||||||
|
-- Mappings for plugins that need to be lazy loaded
|
||||||
|
if not vim.tbl_contains(user_plugins.disable, 'nvim-tree') then
|
||||||
|
require('cosmic.plugins.nvim-tree.mappings')
|
||||||
|
end
|
||||||
|
|
||||||
-- Quickfix mappings
|
-- Quickfix mappings
|
||||||
map('n', '<leader>ck', ':cexpr []<cr>')
|
map('n', '<leader>ck', ':cexpr []<cr>')
|
||||||
|
|
|
@ -61,7 +61,6 @@ return packer.startup(function()
|
||||||
'kyazdani42/nvim-tree.lua',
|
'kyazdani42/nvim-tree.lua',
|
||||||
config = function()
|
config = function()
|
||||||
require('cosmic.plugins.nvim-tree')
|
require('cosmic.plugins.nvim-tree')
|
||||||
require('cosmic.plugins.nvim-tree.mappings')
|
|
||||||
end,
|
end,
|
||||||
opt = true,
|
opt = true,
|
||||||
cmd = {
|
cmd = {
|
||||||
|
|
Loading…
Add table
Reference in a new issue