default-config.lua 9.5 KB

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