default-config.lua 9.3 KB

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