feat(config): clean up comments

This commit is contained in:
Matt Leong 2021-11-10 14:42:28 -08:00
parent e0503e4a81
commit 76817b1b22
4 changed files with 13 additions and 5 deletions

View file

@ -24,7 +24,7 @@ config.lsp = {
format_on_save = true, format_on_save = true,
-- set to false to disable rename notification -- set to false to disable rename notification
rename_notification = false, rename_notification = true,
-- see :h vim.diagnostic.config for all diagnostic configuration options -- see :h vim.diagnostic.config for all diagnostic configuration options
-- see Cosmic defaults: lsp/diagnostics.lua -- see Cosmic defaults: lsp/diagnostics.lua
@ -34,7 +34,7 @@ config.lsp = {
-- enable non-default servers, use default lsp config -- 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 -- 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, -- rust_analyzer = true,
tsserver = { tsserver = {
-- disable formatting (defaults to true) -- disable formatting (defaults to true)
@ -53,6 +53,7 @@ config.lsp = {
}, },
-- See Cosmic defaults lsp/providers/tsserver.lua -- See Cosmic defaults lsp/providers/tsserver.lua
-- If adding additional sources, be sure to also copy the defaults that you would like to preserve from lsp/providers/null_ls.lua
ts_utils = {}, ts_utils = {},
} }

View file

@ -1,9 +1,12 @@
-- Override Cosmic editor options -- Override Cosmic editor options
local opt = vim.opt local opt = vim.opt
local g = vim.g local g = vim.g
-- Default leader is <space>
g.mapleader = ',' g.mapleader = ','
-- Default indent = 2
opt.tabstop = 4 opt.tabstop = 4
opt.softtabstop = 4 opt.softtabstop = 4
opt.shiftwidth = 4 opt.shiftwidth = 4

View file

@ -9,7 +9,8 @@ local plugins = {
}, },
}, },
disable = { -- disabling some core plugins may mean you'll have to remap some keybindings disable = { -- disabling some core plugins may mean you'll have to remap some keybindings
--[[ 'auto-session', --[[
'auto-session',
'autocomplete', 'autocomplete',
'colorizer', 'colorizer',
'dashboard', 'dashboard',
@ -22,7 +23,8 @@ local plugins = {
'terminal', 'terminal',
'theme', 'theme',
'todo-comments', 'todo-comments',
'treesitter', ]] 'treesitter',
]]
}, },
} }

View file

@ -1,11 +1,12 @@
## Configuration ## Configuration
There are four main configuraiton files that you may want to create. There are five main configuraiton files that you may want to create.
- cosmic/config/config.lua - cosmic/config/config.lua
- cosmic/config/editor.lua - cosmic/config/editor.lua
- cosmic/config/mappings.lua - cosmic/config/mappings.lua
- cosmic/config/plugins.lua - cosmic/config/plugins.lua
- cosmic/config/utils.lua
Please look at the examples in this directory in order to get started. Please look at the examples in this directory in order to get started.
@ -17,4 +18,5 @@ cp ./lua/cosmic/config/examples/config.lua ./lua/cosmic/config/config.lua
cp ./lua/cosmic/config/examples/editor.lua ./lua/cosmic/config/editor.lua cp ./lua/cosmic/config/examples/editor.lua ./lua/cosmic/config/editor.lua
cp ./lua/cosmic/config/examples/mappings.lua ./lua/cosmic/config/mappings.lua cp ./lua/cosmic/config/examples/mappings.lua ./lua/cosmic/config/mappings.lua
cp ./lua/cosmic/config/examples/plugins.lua ./lua/cosmic/config/plugins.lua cp ./lua/cosmic/config/examples/plugins.lua ./lua/cosmic/config/plugins.lua
cp ./lua/cosmic/config/examples/utils.lua ./lua/cosmic/config/utils.lua
``` ```