Professional Documents
Culture Documents
Config Lua
Config Lua
local config = {}
-- statusline settings
config.statusline = {
main_icon = '★',
}
-- theming, don't forget to run :PackerSync and reload CosmicNvim when chaning
themes
-- 'catppuccin'
-- 'dracula'
-- 'enfocado'
-- 'gruvbox'
-- 'nightfox'
-- 'nord'
-- 'onedark'
-- 'rose-pine'
config.theme = 'nightfox' -- don't define or set to nil, if you want to enable your
own theme in cosmic/config/plugins.lua
-- lsp settings
config.lsp = {
servers = {
tsserver = {
-- disable formatting (defaults to true)
format = false,
-- OR add/override server options
opts = {
on_attach = function(client, bufnr) end,
flags = {
debounce_text_changes = 150,
},
},
},
null_ls.builtins.formatting.prettierd.with({
filetypes = { "html", "css", "scss", "json", "yaml" }
})
--Enable (broadcasting) snippet capability for completion
vim.cmd[[au TextYankPost * silent! lua vim.highlight.on_yank()]]
vim.lsp.diagnostic.show_line_diagnostics()
return config