default-config.lua 9.0 KB

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