default-config.lua 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257
  1. CONFIG_PATH = vim.fn.stdpath "config"
  2. DATA_PATH = vim.fn.stdpath "data"
  3. CACHE_PATH = vim.fn.stdpath "cache"
  4. TERMINAL = vim.fn.expand "$TERMINAL"
  5. O = {
  6. format_on_save = true,
  7. auto_close_tree = 0,
  8. auto_complete = true,
  9. colorscheme = "lunar",
  10. clipboard = "unnamedplus",
  11. hidden_files = true,
  12. wrap_lines = false,
  13. number = true,
  14. relative_number = true,
  15. number_width = 4,
  16. cmdheight = 2,
  17. cursorline = true,
  18. shell = "bash",
  19. scrolloff = 0,
  20. timeoutlen = 100,
  21. nvim_tree_disable_netrw = 0,
  22. ignore_case = true,
  23. smart_case = true,
  24. lushmode = false,
  25. hl_search = false,
  26. document_highlight = false,
  27. transparent_window = false,
  28. leader_key = "space",
  29. vnsip_dir = vim.fn.stdpath "config" .. "/snippets",
  30. -- @usage pass a table with your desired languages
  31. treesitter = {
  32. ensure_installed = "all",
  33. ignore_install = { "haskell" },
  34. highlight = { enabled = true },
  35. -- The below are for treesitter-textobjects plugin
  36. textobj_prefixes = {
  37. goto_next = "]", -- Go to next
  38. goto_previous = "[", -- Go to previous
  39. inner = "i", -- Select inside
  40. outer = "a", -- Selct around
  41. swap = "<leader>a", -- Swap with next
  42. },
  43. textobj_suffixes = {
  44. -- Start and End respectively for the goto keys
  45. -- for other keys it only uses the first
  46. ["function"] = { "f", "F" },
  47. ["class"] = { "m", "M" },
  48. ["parameter"] = { "a", "A" },
  49. ["block"] = { "k", "K" },
  50. ["conditional"] = { "i", "I" },
  51. ["call"] = { "c", "C" },
  52. ["loop"] = { "l", "L" },
  53. ["statement"] = { "s", "S" },
  54. ["comment"] = { "/", "?" },
  55. },
  56. -- The below is for treesitter hint textobjects plugin
  57. hint_labels = { "h", "j", "f", "d", "n", "v", "s", "l", "a" },
  58. },
  59. lsp = {
  60. popup_border = "single",
  61. },
  62. database = { save_location = "~/.config/nvcode_db", auto_execute = 1 },
  63. plugin = {
  64. -- Builtins
  65. dashboard = { active = false },
  66. colorizer = { active = false },
  67. zen = { active = false },
  68. ts_playground = { active = false },
  69. ts_context_commentstring = { active = false },
  70. ts_hintobjects = { active = false },
  71. ts_autotag = { active = false },
  72. ts_rainbow = { active = false },
  73. ts_textobjects = { active = false },
  74. ts_textsubjects = { active = false },
  75. telescope_fzy = { active = false },
  76. telescope_project = { active = false },
  77. indent_line = { active = false },
  78. symbol_outline = { active = false },
  79. debug = { active = false },
  80. dap_install = { active = false },
  81. lush = { active = false },
  82. diffview = { active = false },
  83. floatterm = { active = false },
  84. trouble = { active = false },
  85. sanegx = { active = false },
  86. },
  87. user_which_key = {},
  88. user_plugins = {
  89. -- use lv-config.lua for this not put here
  90. },
  91. user_autocommands = {
  92. { "FileType", "qf", "set nobuflisted" },
  93. },
  94. lang = {
  95. cmake = {},
  96. clang = {
  97. diagnostics = {
  98. virtual_text = { spacing = 0, prefix = "" },
  99. signs = true,
  100. underline = true,
  101. },
  102. cross_file_rename = true,
  103. header_insertion = "never",
  104. },
  105. css = {
  106. virtual_text = true,
  107. },
  108. dart = {
  109. sdk_path = "/usr/lib/dart/bin/snapshots/analysis_server.dart.snapshot",
  110. },
  111. docker = {},
  112. efm = {},
  113. elm = {},
  114. emmet = { active = true },
  115. elixir = {},
  116. graphql = {},
  117. go = {},
  118. html = {},
  119. java = {},
  120. json = {
  121. diagnostics = {
  122. virtual_text = { spacing = 0, prefix = "" },
  123. signs = true,
  124. underline = true,
  125. },
  126. },
  127. kotlin = {},
  128. latex = {},
  129. lua = {
  130. diagnostics = {
  131. virtual_text = { spacing = 0, prefix = "" },
  132. signs = true,
  133. underline = true,
  134. },
  135. },
  136. php = {
  137. format = {
  138. format = {
  139. default = "psr12",
  140. },
  141. },
  142. environment = {
  143. php_version = "7.4",
  144. },
  145. diagnostics = {
  146. virtual_text = { spacing = 0, prefix = "" },
  147. signs = true,
  148. underline = true,
  149. },
  150. filetypes = { "php", "phtml" },
  151. },
  152. python = {
  153. linter = "",
  154. isort = false,
  155. diagnostics = {
  156. virtual_text = { spacing = 0, prefix = "" },
  157. signs = true,
  158. underline = true,
  159. },
  160. analysis = {
  161. type_checking = "basic",
  162. auto_search_paths = true,
  163. use_library_code_types = true,
  164. },
  165. },
  166. ruby = {
  167. diagnostics = {
  168. virtualtext = { spacing = 0, prefix = "" },
  169. signs = true,
  170. underline = true,
  171. },
  172. filetypes = { "rb", "erb", "rakefile", "ruby" },
  173. },
  174. rust = {
  175. rust_tools = {
  176. active = false,
  177. parameter_hints_prefix = "<-",
  178. other_hints_prefix = "=>", -- prefix for all the other hints (type, chaining)
  179. },
  180. linter = "",
  181. diagnostics = {
  182. virtual_text = { spacing = 0, prefix = "" },
  183. signs = true,
  184. underline = true,
  185. },
  186. },
  187. sh = {
  188. -- @usage can be 'shellcheck'
  189. linter = "",
  190. -- @usage can be 'shfmt'
  191. diagnostics = {
  192. virtual_text = { spacing = 0, prefix = "" },
  193. signs = true,
  194. underline = true,
  195. },
  196. },
  197. svelte = {},
  198. tailwindcss = {
  199. active = false,
  200. filetypes = {
  201. "html",
  202. "css",
  203. "scss",
  204. "javascript",
  205. "javascriptreact",
  206. "typescript",
  207. "typescriptreact",
  208. },
  209. },
  210. terraform = {},
  211. tsserver = {
  212. -- @usage can be 'eslint'
  213. linter = "",
  214. diagnostics = {
  215. virtual_text = { spacing = 0, prefix = "" },
  216. signs = true,
  217. underline = true,
  218. },
  219. },
  220. vim = {},
  221. yaml = {},
  222. },
  223. dashboard = {
  224. custom_header = {
  225. "⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣀⣀⣀⣀⣀⣀⣀⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀",
  226. "⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣠⣤⣶⣾⠿⠿⠟⠛⠛⠛⠛⠿⠿⣿⣷⣤⣄⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀",
  227. " ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣠⣾⡿⠋⠉⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠙⠿⣷⣤⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀",
  228. "⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣤⡿⠛⠉⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠉⠛⢿⣦⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀",
  229. "⠀⠀⠀⠀⠀⠀⠀⠀⠀⡠⠒⠂⠉⠉⠉⠉⢩⣿⡿⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠹⣷⡄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀",
  230. "⠀⠀⠀⠀⠀⠀⠀⠀⠸⡀⠀⠀⠀⠀⠀⢰⣿⠋⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠙⣿⣧⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀",
  231. "⠀⠀⠀⠀⠀⠀⠀⠀⠀⠑⠠⡀⠀⠀⢀⣾⠋⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠘⣿⡆⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀",
  232. "⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠢⢀⣸⡟⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢹⣇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀",
  233. "⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣿⡧⢄⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢸⣿⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀",
  234. "⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣿⡇⠀⠈⠁⠒⠤⣀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢸⣿⣀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀",
  235. "⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢸⣇⠀⠀⠀⠀⠀⠀⠉⠢⠤⠀⢀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣸⡟⠈⠑⠄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀",
  236. "⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢿⡄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠉⠑⠒⠤⣀⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢠⣿⡇⠀⠀⢀⣣⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀",
  237. "⠀⣿⡟⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠸⣷⡄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠉⠀⠀⠒⠢⠤⠄⣀⣀⠀⠀⠀⢠⣿⡟⠀⠀⠀⣺⣿⡿⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀",
  238. "⠀⣿⠇⠀⠀⠀⠀⠀⣤⡄⠀⠀⢠⣤⡄⠀⢨⣭⣠⣤⣤⣤⡀⠀⠀⢀⣤⣤⣤⣤⡄⠀⠀⠀⣤⣄⣤⣤⣤⠀⠀⣿⣯⠉⠉⣿⡟⠀⠈⢩⣭⣤⣤⠀⠀⠀⠀⣠⣤⣤⣤⣄⣤⣤",
  239. "⢠⣿⠀⠀⠀⠀⠀⠀⣿⠃⠀⠀⣸⣿⠁⠀⣿⣿⠉⠀⠈⣿⡇⠀⠀⠛⠋⠀⠀⢹⣿⠀⠀⠀⣿⠏⠀⠸⠿⠃⠀⣿⣿⠀⣰⡟⠀⠀⠀⠀⠀⢸⣿⠀⠀⠀⠀⣿⡟⢸⣿⡇⢀⣿",
  240. "⣸⡇⠀⠀⠀⠀⠀⢸⣿⠀⠀⠀⣿⡟⠀⢠⣿⡇⠀⠀⢰⣿⡇⠀⣰⣾⠟⠛⠛⣻⡇⠀⠀⢸⡿⠀⠀⠀⠀⠀⠀⢻⣿⢰⣿⠀⠀⠀⠀⠀⠀⣾⡇⠀⠀⠀⢸⣿⠇⢸⣿⠀⢸⡏",
  241. "⣿⣧⣤⣤⣤⡄⠀⠘⣿⣤⣤⡤⣿⠇⠀⢸⣿⠁⠀⠀⣼⣿⠀⠀⢿⣿⣤⣤⠔⣿⠃⠀⠀⣾⡇⠀⠀⠀⠀⠀⠀⢸⣿⣿⠋⠀⠀⠀⢠⣤⣤⣿⣥⣤⡄⠀⣼⣿⠀⣸⡏⠀⣿⠃",
  242. "⠉⠉⠉⠉⠉⠁⠀⠀⠈⠉⠉⠀⠉⠀⠀⠈⠉⠀⠀⠀⠉⠉⠀⠀⠀⠉⠉⠁⠈⠉⠀⠀⠀⠉⠀⠀⠀⠀⠀⠀⠀⠈⠉⠉⠀⠀⠀⠀⠈⠉⠉⠉⠉⠉⠁⠀⠉⠁⠀⠉⠁⠀⠉⠀",
  243. },
  244. footer = { "chrisatmachine.com" },
  245. },
  246. }