default-config.lua 9.4 KB

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