feat: tiny clean up

This commit is contained in:
Matt Leong 2021-11-21 18:34:28 -08:00
parent 9b27aae4c2
commit 6fbfee29b9
3 changed files with 3 additions and 2 deletions

View file

@ -7,7 +7,6 @@ end
-- these settings will be merged with any settings definined in config.lua
local default_config = {
-- theme = 'catppuccin',
theme = 'tokyonight',
lsp = {
format_on_save = true, -- true/false or table of filetypes {'.ts', '.js',}

View file

@ -39,7 +39,7 @@ end
function M.get_active_lsp_client_names()
local active_clients = vim.lsp.get_active_clients()
local client_names = {}
for i, client in pairs(active_clients or {}) do
for _, client in pairs(active_clients or {}) do
local buf = vim.api.nvim_get_current_buf()
-- only return attached buffers
if vim.lsp.buf_is_attached(buf, client.id) then

View file

@ -81,6 +81,8 @@ CosmicNvim comes with first-class support for the following themes:
- [Tokyonight](https://github.com/folke/tokyonight.nvim)
- [Nightfox](https://github.com/EdenEast/nightfox.nvim)
[Additional Screenshots](https://github.com/mattleong/CosmicNvim/wiki/Theme-Screenshots)
## Configuration
[Cosmic configurations](./lua/cosmic/config/examples/config.lua)