default-config.lua 9.4 KB

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