default-config.lua 9.1 KB

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