init.lua 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. return {
  2. -- Configure AstroNvim updates
  3. updater = {
  4. remote = "origin", -- remote to use
  5. channel = "stable", -- "stable" or "nightly"
  6. version = "latest", -- "latest", tag name, or regex search like "v1.*" to only do updates before v2 (STABLE ONLY)
  7. branch = "nightly", -- branch name (NIGHTLY ONLY)
  8. commit = nil, -- commit hash (NIGHTLY ONLY)
  9. pin_plugins = nil, -- nil, true, false (nil will pin plugins on stable only)
  10. skip_prompts = false, -- skip prompts about breaking changes
  11. show_changelog = true, -- show the changelog after performing an update
  12. auto_quit = false, -- automatically quit the current session after a successful update
  13. remotes = { -- easily add new remotes to track
  14. -- ["remote_name"] = "https://remote_url.come/repo.git", -- full remote url
  15. -- ["remote2"] = "github_user/repo", -- GitHub user/repo shortcut,
  16. -- ["remote3"] = "github_user", -- GitHub user assume AstroNvim fork
  17. },
  18. },
  19. -- Set colorscheme to use
  20. -- colorscheme = "astrodark",
  21. -- colorscheme = "habamax",
  22. -- colorscheme = "onebuddy",
  23. -- colorscheme = "zephyr",
  24. -- colorscheme = "vscode",
  25. -- colorscheme = "material",
  26. -- colorscheme = "leaf",
  27. -- colorscheme = "vscode_modern",
  28. -- colorscheme = "gruvbox",
  29. -- colorscheme = "kanagawa",
  30. colorscheme = "catppuccin",
  31. -- Diagnostics configuration (for vim.diagnostics.config({...})) when diagnostics are on
  32. diagnostics = {
  33. virtual_text = true,
  34. underline = true,
  35. },
  36. lsp = {
  37. -- customize lsp formatting options
  38. formatting = {
  39. -- control auto formatting on save
  40. format_on_save = {
  41. enabled = true, -- enable or disable format on save globally
  42. allow_filetypes = { -- enable format on save for specified filetypes only
  43. -- "go",
  44. },
  45. ignore_filetypes = { -- disable format on save for specified filetypes
  46. -- "python",
  47. },
  48. },
  49. disabled = { -- disable formatting capabilities for the listed language servers
  50. -- "sumneko_lua",
  51. },
  52. timeout_ms = 1000, -- default format timeout
  53. -- filter = function(client) -- fully override the default formatting function
  54. -- return true
  55. -- end
  56. },
  57. -- enable servers that you already have installed without mason
  58. servers = {
  59. -- "pyright"
  60. },
  61. },
  62. -- Configure require("lazy").setup() options
  63. lazy = {
  64. defaults = { lazy = true },
  65. performance = {
  66. rtp = {
  67. -- customize default disabled vim plugins
  68. disabled_plugins = { "tohtml", "gzip", "matchit", "zipPlugin", "netrwPlugin", "tarPlugin", "matchparen" },
  69. },
  70. },
  71. },
  72. -- This function is run last and is a good place to configuring
  73. -- augroups/autocommands and custom filetypes also this just pure lua so
  74. -- anything that doesn't fit in the normal config locations above can go here
  75. polish = function()
  76. -- Set up custom filetypes
  77. -- vim.filetype.add {
  78. -- extension = {
  79. -- foo = "fooscript",
  80. -- },
  81. -- filename = {
  82. -- ["Foofile"] = "fooscript",
  83. -- },
  84. -- pattern = {
  85. -- ["~/%.config/foo/.*"] = "fooscript",
  86. -- },
  87. -- }
  88. end,
  89. }