feat(readme): clean up config readme

This commit is contained in:
Matt Leong 2022-02-08 08:17:37 -08:00
parent 7984d760a1
commit 65a216ed4e

View file

@ -6,39 +6,31 @@
local config = { local config = {
-- See https://github.com/rmagatti/auto-session#%EF%B8%8F-configuration -- See https://github.com/rmagatti/auto-session#%EF%B8%8F-configuration
auto_session = {}, auto_session = {},
-- See :h nvim_open_win for possible border options -- See :h nvim_open_win for possible border options
border = 'rounded', border = 'rounded',
-- https://github.com/numToStr/Comment.nvim#configuration-optional -- https://github.com/numToStr/Comment.nvim#configuration-optional
comment_nvim = {}, comment_nvim = {},
-- See https://github.com/CosmicNvim/cosmic-ui#%EF%B8%8F-configuration -- See https://github.com/CosmicNvim/cosmic-ui#%EF%B8%8F-configuration
cosmic_ui = {}, cosmic_ui = {},
-- See :h vim.diagnostic.config for all diagnostic configuration options
-- see :h vim.diagnostic.config for all diagnostic configuration options
diagnostic = {}, diagnostic = {},
-- See :h gitsigns-usage
-- see :h gitsigns-usage
gitsigns = {}, gitsigns = {},
-- LSP settings
-- lsp settings
lsp = { lsp = {
-- True/false or table of filetypes {'.ts', '.js',}
-- true/false or table of filetypes {'.ts', '.js',}
format_on_save = true, format_on_save = true,
-- Set to false to disable rename notification
-- set to false to disable rename notification
rename_notification = true, rename_notification = true,
-- Enable non-default servers, use default lsp config
-- Check here for configs that will be used by default: https://github.com/williamboman/nvim-lsp-installer/tree/main/lua/nvim-lsp-installer/servers
servers = { servers = {
-- Enable rust_analyzer
rust_analyzer = true,
-- enable non-default servers, use default lsp config -- Enable tsserver w/custom settings
-- check here for configs that will be used by default: https://github.com/williamboman/nvim-lsp-installer/tree/main/lua/nvim-lsp-installer/servers
-- rust_analyzer = true,
tsserver = { tsserver = {
-- disable formatting (defaults to true) -- Disable formatting (defaults to true)
format = false, format = false,
-- OR add/override server options -- OR add/override server options
opts = { opts = {
@ -48,64 +40,42 @@ local config = {
}, },
}, },
}, },
-- See Cosmic defaults lsp/providers/null_ls.lua and https://github.com/jose-elias-alvarez/null-ls.nvim/
-- See Cosmic defaults lsp/providers/null_ls.lua
-- and https://github.com/jose-elias-alvarez/null-ls.nvim/
-- If adding additional sources, be sure to also copy the defaults that you would like to preserve from lsp/providers/null_ls.lua -- If adding additional sources, be sure to also copy the defaults that you would like to preserve from lsp/providers/null_ls.lua
null_ls = { null_ls = {
-- disable default list of sources provided by CosmicNvim -- Disable default list of sources provided by CosmicNvim
default_cosmic_sources = false, default_cosmic_sources = false,
-- add additional sources here -- Add additional sources here
sources = {}, sources = {},
}, },
}, },
-- See Cosmic defaults lsp/providers/tsserver.lua -- See Cosmic defaults lsp/providers/tsserver.lua
ts_utils = {}, ts_utils = {},
}, },
-- See https://github.com/ray-x/lsp_signature.nvim#full-configuration-with-default-values -- See https://github.com/ray-x/lsp_signature.nvim#full-configuration-with-default-values
lsp_signature = {}, lsp_signature = {},
-- See https://github.com/L3MON4D3/LuaSnip/blob/577045e9adf325e58f690f4d4b4a293f3dcec1b3/README.md#config -- See https://github.com/L3MON4D3/LuaSnip/blob/577045e9adf325e58f690f4d4b4a293f3dcec1b3/README.md#config
luasnip = {}, luasnip = {},
-- Default statusline icon
-- default statusline icon
statusline = { statusline = {
main_icon = '', main_icon = '',
}, },
-- See :h telescope.setup -- See :h telescope.setup
telescope = {}, telescope = {},
-- Theming, don't forget to run :CosmicReloadSync when changing themes
-- theming, don't forget to run :CosmicReloadSync when changing themes -- Options: 'catppuccin', 'dracula', 'enfocado', 'github', 'gruvbox', 'kanagawa', 'nightfox', 'nord', 'onedark', 'rose-pine',
-- 'catppuccin',
-- 'dracula',
-- 'enfocado',
-- 'github',
-- 'gruvbox',
-- 'kanagawa',
-- 'nightfox',
-- 'nord',
-- 'onedark',
-- 'rose-pine',
theme = 'tokyonight', -- don't define or set to nil, if you want to enable your own theme in cosmic/config/plugins.lua theme = 'tokyonight', -- don't define or set to nil, if you want to enable your own theme in cosmic/config/plugins.lua
-- See https://github.com/folke/todo-comments.nvim#%EF%B8%8F-configuration -- See https://github.com/folke/todo-comments.nvim#%EF%B8%8F-configuration
todo_comments = {}, todo_comments = {},
-- See :h nvim-treesitter-quickstart -- See :h nvim-treesitter-quickstart
treesitter = {}, treesitter = {},
-- See :h notify.setup -- See :h notify.setup
notify = {}, notify = {},
--
-- See :h cmp-usage -- See :h cmp-usage
nvim_cmp = {}, nvim_cmp = {},
-- See :h nvim-tree.setup -- See :h nvim-tree.setup
nvim_tree = {}, nvim_tree = {},
-- Add additional plugins
add_plugins = { add_plugins = {
'ggandor/lightspeed.nvim', 'ggandor/lightspeed.nvim',
{ {
@ -113,7 +83,7 @@ local config = {
requires = { 'kyazdani42/nvim-web-devicons' }, requires = { 'kyazdani42/nvim-web-devicons' },
}, },
}, },
-- Disable plugins enabled by CosmicNvim
disable_builtin_plugins = { disable_builtin_plugins = {
--[[ --[[
'auto-session', 'auto-session',