nvim/lua/cosmic/config/config-example.lua
2021-11-06 22:16:16 -07:00

63 lines
1.3 KiB
Lua

-- Override Cosmic configuration options
--[[
local config = {}
-- auto session settings
-- see Cosmic defaults: core/session/init.lua
config.session = {}
-- statusline settings
config.statusline = {
main_icon = '★',
}
-- see Cosmic defaults: core/treesitter/init.lua
config.treesitter = {}
-- lsp Settings
config.lsp = {
-- true/false or table of filetypes {'.ts', '.js',}
format_on_save = true,
-- set to false to disable rename notification
rename_notification = false,
-- see :h vim.diagnostic.config for all diagnostic configuration options
-- see Cosmic defaults: lsp/diagnostics.lua
diagnostic = {},
servers = {
-- enable/disable server + formatting
eslint = false,
-- 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
rust_analyzer = true,
tsserver = {
-- disable formatting
format = false,
-- OR add/override server options
opts = {
on_attach = function(client, bufnr) end,
flags = {
debounce_text_changes = 150,
}
}
},
efm = {
-- specifc to efm, e.g. 'eslint', 'prettier', 'stylua'
disable_formatters = {'eslint'},
},
},
}
return config
]]