feat: tiny clean up
This commit is contained in:
parent
9b27aae4c2
commit
6fbfee29b9
3 changed files with 3 additions and 2 deletions
|
@ -7,7 +7,6 @@ end
|
||||||
|
|
||||||
-- these settings will be merged with any settings definined in config.lua
|
-- these settings will be merged with any settings definined in config.lua
|
||||||
local default_config = {
|
local default_config = {
|
||||||
-- theme = 'catppuccin',
|
|
||||||
theme = 'tokyonight',
|
theme = 'tokyonight',
|
||||||
lsp = {
|
lsp = {
|
||||||
format_on_save = true, -- true/false or table of filetypes {'.ts', '.js',}
|
format_on_save = true, -- true/false or table of filetypes {'.ts', '.js',}
|
||||||
|
|
|
@ -39,7 +39,7 @@ end
|
||||||
function M.get_active_lsp_client_names()
|
function M.get_active_lsp_client_names()
|
||||||
local active_clients = vim.lsp.get_active_clients()
|
local active_clients = vim.lsp.get_active_clients()
|
||||||
local client_names = {}
|
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()
|
local buf = vim.api.nvim_get_current_buf()
|
||||||
-- only return attached buffers
|
-- only return attached buffers
|
||||||
if vim.lsp.buf_is_attached(buf, client.id) then
|
if vim.lsp.buf_is_attached(buf, client.id) then
|
||||||
|
|
|
@ -81,6 +81,8 @@ CosmicNvim comes with first-class support for the following themes:
|
||||||
- [Tokyonight](https://github.com/folke/tokyonight.nvim)
|
- [Tokyonight](https://github.com/folke/tokyonight.nvim)
|
||||||
- [Nightfox](https://github.com/EdenEast/nightfox.nvim)
|
- [Nightfox](https://github.com/EdenEast/nightfox.nvim)
|
||||||
|
|
||||||
|
[Additional Screenshots](https://github.com/mattleong/CosmicNvim/wiki/Theme-Screenshots)
|
||||||
|
|
||||||
## Configuration
|
## Configuration
|
||||||
|
|
||||||
[Cosmic configurations](./lua/cosmic/config/examples/config.lua)
|
[Cosmic configurations](./lua/cosmic/config/examples/config.lua)
|
||||||
|
|
Loading…
Add table
Reference in a new issue