default-config.lua 9.1 KB

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