move code from init to config where possible
This commit is contained in:
parent
d0e33bdbd4
commit
c8a544b3e4
3 changed files with 5 additions and 8 deletions
|
@ -10,7 +10,9 @@ return {
|
|||
dependencies = {
|
||||
'MunifTanjim/nui.nvim',
|
||||
},
|
||||
init = function()
|
||||
config = function()
|
||||
require('cosmic-ui').setup(plugin_config)
|
||||
|
||||
config.lsp.add_on_attach_mapping(function(client, bufnr)
|
||||
local buf_map = utils.create_buf_map(bufnr)
|
||||
|
||||
|
@ -24,8 +26,5 @@ return {
|
|||
)
|
||||
end)
|
||||
end,
|
||||
config = function()
|
||||
require('cosmic-ui').setup(plugin_config)
|
||||
end,
|
||||
event = 'VeryLazy',
|
||||
}
|
||||
|
|
|
@ -5,8 +5,7 @@ return {
|
|||
-- dependencies = { { "echasnovski/mini.icons", opts = {} } },
|
||||
config = function()
|
||||
require('oil').setup()
|
||||
end,
|
||||
init = function()
|
||||
|
||||
local map = require('utils').set_keymap
|
||||
|
||||
map('n', '-', '<CMD>Oil<cr>', { desc = 'Open parent directory' })
|
||||
|
|
|
@ -11,8 +11,7 @@ return {
|
|||
},
|
||||
config = function()
|
||||
require('plugins.telescope.config')
|
||||
end,
|
||||
init = function()
|
||||
|
||||
-- normal mappings
|
||||
local u = require('utils')
|
||||
local map = u.set_keymap
|
||||
|
|
Loading…
Add table
Reference in a new issue