refactor(core): rename some core modules
This commit is contained in:
parent
c7d28b0176
commit
d2c42bec2c
11 changed files with 15 additions and 15 deletions
|
@ -64,17 +64,17 @@ config.lsp = {
|
||||||
ts_utils = {},
|
ts_utils = {},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
-- See https://github.com/rmagatti/auto-session#%EF%B8%8F-configuration
|
||||||
|
config.auto_session = {}
|
||||||
|
|
||||||
-- See https://github.com/folke/todo-comments.nvim#%EF%B8%8F-configuration
|
-- See https://github.com/folke/todo-comments.nvim#%EF%B8%8F-configuration
|
||||||
config.comments = {}
|
config.comments = {}
|
||||||
|
|
||||||
-- See :h nvim-tree.setup
|
|
||||||
config.nvim_tree = {}
|
|
||||||
|
|
||||||
-- See :h notify.setup
|
-- See :h notify.setup
|
||||||
config.notify = {}
|
config.notify = {}
|
||||||
|
|
||||||
-- See https://github.com/rmagatti/auto-session#%EF%B8%8F-configuration
|
-- See :h nvim-tree.setup
|
||||||
config.session = {}
|
config.nvim_tree = {}
|
||||||
|
|
||||||
-- See :h telescope.setup
|
-- See :h telescope.setup
|
||||||
config.telescope = {}
|
config.telescope = {}
|
||||||
|
|
|
@ -6,4 +6,4 @@ local defaults = {
|
||||||
auto_restore_enabled = false,
|
auto_restore_enabled = false,
|
||||||
}
|
}
|
||||||
|
|
||||||
require('auto-session').setup(vim.tbl_deep_extend('force', defaults, config.session or {}))
|
require('auto-session').setup(vim.tbl_deep_extend('force', defaults, config.auto_session or {}))
|
||||||
|
|
|
@ -11,7 +11,7 @@ end
|
||||||
|
|
||||||
M.init = function()
|
M.init = function()
|
||||||
-- navigation
|
-- navigation
|
||||||
map('n', '<leader>ff', '<cmd>lua require("cosmic.core.navigation.mappings").project_files()<cr>')
|
map('n', '<leader>ff', '<cmd>lua require("cosmic.core.telescope.mappings").project_files()<cr>')
|
||||||
map('n', '<leader>fp', ':Telescope find_files<cr>')
|
map('n', '<leader>fp', ':Telescope find_files<cr>')
|
||||||
map('n', '<leader>fk', ':Telescope buffers<cr>')
|
map('n', '<leader>fk', ':Telescope buffers<cr>')
|
||||||
map('n', '<leader>fs', ':Telescope live_grep<cr>')
|
map('n', '<leader>fs', ':Telescope live_grep<cr>')
|
|
@ -10,7 +10,7 @@ map('n', '<leader>cf', ':cfdo %s/')
|
||||||
map('n', 'Y', 'y$')
|
map('n', 'Y', 'y$')
|
||||||
|
|
||||||
require('cosmic.core.session.mappings')
|
require('cosmic.core.session.mappings')
|
||||||
require('cosmic.core.navigation.mappings').init()
|
require('cosmic.core.telescope.mappings').init()
|
||||||
require('cosmic.core.file-explorer.mappings')
|
require('cosmic.core.nvim-tree.mappings')
|
||||||
require('cosmic.core.terminal.mappings')
|
require('cosmic.core.terminal.mappings')
|
||||||
require('cosmic.lsp.mappings')
|
require('cosmic.lsp.mappings')
|
||||||
|
|
|
@ -37,7 +37,7 @@ return packer.startup(function()
|
||||||
use({
|
use({
|
||||||
'rcarriga/nvim-notify',
|
'rcarriga/nvim-notify',
|
||||||
config = function()
|
config = function()
|
||||||
require('cosmic.core.notifications')
|
require('cosmic.core.notify')
|
||||||
end,
|
end,
|
||||||
after = config.theme,
|
after = config.theme,
|
||||||
disable = vim.tbl_contains(user_plugins.disable, 'notify'),
|
disable = vim.tbl_contains(user_plugins.disable, 'notify'),
|
||||||
|
@ -59,7 +59,7 @@ return packer.startup(function()
|
||||||
use({
|
use({
|
||||||
'kyazdani42/nvim-tree.lua',
|
'kyazdani42/nvim-tree.lua',
|
||||||
config = function()
|
config = function()
|
||||||
require('cosmic.core.file-explorer')
|
require('cosmic.core.nvim-tree')
|
||||||
end,
|
end,
|
||||||
opt = true,
|
opt = true,
|
||||||
cmd = {
|
cmd = {
|
||||||
|
@ -190,7 +190,7 @@ return packer.startup(function()
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
config = function()
|
config = function()
|
||||||
require('cosmic.core.navigation')
|
require('cosmic.core.telescope')
|
||||||
end,
|
end,
|
||||||
event = 'BufWinEnter',
|
event = 'BufWinEnter',
|
||||||
disable = vim.tbl_contains(user_plugins.disable, 'telescope'),
|
disable = vim.tbl_contains(user_plugins.disable, 'telescope'),
|
||||||
|
@ -241,7 +241,7 @@ return packer.startup(function()
|
||||||
'folke/todo-comments.nvim',
|
'folke/todo-comments.nvim',
|
||||||
requires = 'nvim-lua/plenary.nvim',
|
requires = 'nvim-lua/plenary.nvim',
|
||||||
config = function()
|
config = function()
|
||||||
require('cosmic.core.comments')
|
require('cosmic.core.todo-comments')
|
||||||
end,
|
end,
|
||||||
event = 'BufWinEnter',
|
event = 'BufWinEnter',
|
||||||
disable = vim.tbl_contains(user_plugins.disable, 'todo-comments'),
|
disable = vim.tbl_contains(user_plugins.disable, 'todo-comments'),
|
||||||
|
|
|
@ -132,9 +132,9 @@ Enter `:TSInstall` followed by <TAB> to see your options for additional language
|
||||||
|
|
||||||
## Default Mappings
|
## Default Mappings
|
||||||
|
|
||||||
[File Navigation](./lua/cosmic/core/navigation/mappings.lua)
|
[File navigation](./lua/cosmic/core/telescope/mappings.lua)
|
||||||
|
|
||||||
[File explorer](./lua/cosmic/core/file-explorer/mappings.lua)
|
[File explorer](./lua/cosmic/core/nvim-tree/mappings.lua)
|
||||||
|
|
||||||
[Terminal](./lua/cosmic/core/terminal/mappings.lua)
|
[Terminal](./lua/cosmic/core/terminal/mappings.lua)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue