refactor(config): rename example configs
This commit is contained in:
parent
16cfc46795
commit
7cff9dcd98
9 changed files with 22 additions and 21 deletions
4
.gitignore
vendored
4
.gitignore
vendored
|
@ -3,3 +3,7 @@ sessions/**
|
|||
.netrwhist
|
||||
plugin/
|
||||
lua/cosmic/compiled.lua
|
||||
lua/cosmic/config/editor.lua
|
||||
lua/cosmic/config/config.lua
|
||||
lua/cosmic/config/mappings.lua
|
||||
lua/cosmic/config/plugins.lua
|
||||
|
|
|
@ -2,11 +2,6 @@
|
|||
local ok, user_config = pcall(require, 'cosmic.config.config')
|
||||
|
||||
if not ok then
|
||||
error(('Error loading user config...\n\n%s'):format(user_config))
|
||||
error('No user config, using default instead...')
|
||||
end
|
||||
|
||||
if user_config == true then
|
||||
user_config = {}
|
||||
end
|
||||
|
||||
|
|
|
@ -3,10 +3,8 @@ local cosmic_modules = {
|
|||
'cosmic.pluginsInit',
|
||||
'cosmic.compiled',
|
||||
'cosmic.editor',
|
||||
'cosmic.core.theme.highlights',
|
||||
'cosmic.config.editor',
|
||||
'cosmic.mappings',
|
||||
'cosmic.config.mappings',
|
||||
'cosmic.core.theme.highlights',
|
||||
}
|
||||
|
||||
for _, mod in ipairs(cosmic_modules) do
|
||||
|
@ -15,3 +13,12 @@ for _, mod in ipairs(cosmic_modules) do
|
|||
error(('Error loading %s...\n\n%s'):format(mod, err))
|
||||
end
|
||||
end
|
||||
|
||||
local user_config_modules = {
|
||||
'cosmic.config.editor',
|
||||
'cosmic.config.mappings',
|
||||
}
|
||||
|
||||
for _, mod in ipairs(user_config_modules) do
|
||||
pcall(require, mod)
|
||||
end
|
||||
|
|
|
@ -9,11 +9,6 @@ local use = packer.use
|
|||
|
||||
local ok, user_plugins = pcall(require, 'cosmic.config.plugins')
|
||||
if not ok then
|
||||
error(('Error loading user custom plugins...\n\n%s'):format(user_plugins))
|
||||
return false
|
||||
end
|
||||
|
||||
if user_plugins == true then
|
||||
user_plugins = {
|
||||
add = {},
|
||||
disable = {},
|
||||
|
|
16
readme.md
16
readme.md
|
@ -66,13 +66,13 @@ Additional LSP server installation [details](https://github.com/mattleong/Cosmic
|
|||
|
||||
## Configuration
|
||||
|
||||
[Cosmic configurations](./lua/cosmic/config/config.lua)
|
||||
[Cosmic configurations](./lua/cosmic/config/config-example.lua)
|
||||
|
||||
[Plugin configurations](./lua/cosmic/config/plugins.lua)
|
||||
[Plugin configurations](./lua/cosmic/config/plugins-example.lua)
|
||||
|
||||
[Add additional mappings](./lua/cosmic/config/mappings.lua)
|
||||
[Add additional mappings](./lua/cosmic/config/mappings-example.lua)
|
||||
|
||||
[Add additional vim options](./lua/cosmic/config/editor.lua)
|
||||
[Add additional vim options](./lua/cosmic/config/editor-example.lua)
|
||||
|
||||
## Treesitter Support
|
||||
|
||||
|
@ -98,15 +98,15 @@ Enter `:TSInstall` followed by <TAB> to see your options for additional language
|
|||

|
||||

|
||||

|
||||
|
||||
|
||||
### Dashboard
|
||||
|
||||
|
||||
<img width="1792" alt="dashboard" src="https://user-images.githubusercontent.com/3721204/140592730-fc512005-6060-4dd2-8b90-0afa865d61d3.png">
|
||||
|
||||
### Autocomplete
|
||||
|
||||
<img width="1792" alt="autocomplete" src="https://user-images.githubusercontent.com/3721204/140592713-f08c72f8-4fc5-4422-8987-2224b9425725.png">
|
||||
|
||||
|
||||
### Rename
|
||||
|
||||
<img width="859" alt="rename" src="https://user-images.githubusercontent.com/3721204/140592783-c9875634-805e-45f4-8547-6dcb5b5c7404.png">
|
||||
|
@ -118,5 +118,5 @@ Enter `:TSInstall` followed by <TAB> to see your options for additional language
|
|||
### Hover
|
||||
|
||||
<img width="1792" alt="hover" src="https://user-images.githubusercontent.com/3721204/140592798-b9dbbdee-8496-4998-a874-110a051a7672.png">
|
||||
|
||||
|
||||
[See more screenshots](https://github.com/mattleong/CosmicNvim/wiki/Screenshots)
|
||||
|
|
Loading…
Add table
Reference in a new issue