default-config.lua 9.0 KB

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