default-config.lua 9.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268
  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. rainbow = { enabled = false },
  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. -- TODO remove non built-ins
  61. -- Builtins
  62. dashboard = { active = false },
  63. colorizer = { active = false },
  64. zen = { active = false },
  65. ts_playground = { active = false },
  66. ts_context_commentstring = { active = false },
  67. ts_hintobjects = { active = false },
  68. ts_autotag = { active = false },
  69. ts_rainbow = { active = false },
  70. ts_textobjects = { active = false },
  71. ts_textsubjects = { active = false },
  72. telescope_fzy = { active = false },
  73. telescope_project = { active = false },
  74. indent_line = { active = false },
  75. symbol_outline = { active = false },
  76. debug = { active = false },
  77. dap_install = { active = false },
  78. lazygit = { active = false },
  79. lush = { active = false },
  80. diffview = { active = false },
  81. ----------------------------------------------------------------------
  82. -- Non builtins
  83. octo = { active = false },
  84. gitlinker = { active = false },
  85. todo_comments = { active = false },
  86. gist = { active = false },
  87. git_blame = { active = false },
  88. lsp_colors = { active = false },
  89. ranger = { active = false },
  90. hop = { active = false },
  91. dial = { active = false },
  92. matchup = { active = false },
  93. numb = { active = false },
  94. bqf = { active = false },
  95. trouble = { active = false },
  96. floatterm = { active = false },
  97. spectre = { active = false },
  98. lsp_rooter = { active = false },
  99. markdown_preview = { active = false },
  100. bracey = { active = false },
  101. codi = { active = false },
  102. sanegx = { active = false },
  103. snap = { active = false },
  104. tabnine = { active = false },
  105. },
  106. custom_plugins = {
  107. -- use lv-config.lua for this not put here
  108. },
  109. user_autocommands = {
  110. { "FileType", "qf", "set nobuflisted" },
  111. },
  112. lang = {
  113. python = {
  114. linter = "",
  115. isort = false,
  116. diagnostics = {
  117. virtual_text = { spacing = 0, prefix = "" },
  118. signs = true,
  119. underline = true,
  120. },
  121. analysis = {
  122. type_checking = "basic",
  123. auto_search_paths = true,
  124. use_library_code_types = true,
  125. },
  126. },
  127. dart = {
  128. sdk_path = "/usr/lib/dart/bin/snapshots/analysis_server.dart.snapshot",
  129. },
  130. lua = {
  131. diagnostics = {
  132. virtual_text = { spacing = 0, prefix = "" },
  133. signs = true,
  134. underline = true,
  135. },
  136. },
  137. sh = {
  138. -- @usage can be 'shellcheck'
  139. linter = "",
  140. -- @usage can be 'shfmt'
  141. diagnostics = {
  142. virtual_text = { spacing = 0, prefix = "" },
  143. signs = true,
  144. underline = true,
  145. },
  146. },
  147. tsserver = {
  148. -- @usage can be 'eslint'
  149. linter = "",
  150. diagnostics = {
  151. virtual_text = { spacing = 0, prefix = "" },
  152. signs = true,
  153. underline = true,
  154. },
  155. },
  156. json = {
  157. diagnostics = {
  158. virtual_text = { spacing = 0, prefix = "" },
  159. signs = true,
  160. underline = true,
  161. },
  162. },
  163. tailwindcss = {
  164. filetypes = {
  165. "html",
  166. "css",
  167. "scss",
  168. "javascript",
  169. "javascriptreact",
  170. "typescript",
  171. "typescriptreact",
  172. },
  173. },
  174. clang = {
  175. diagnostics = {
  176. virtual_text = { spacing = 0, prefix = "" },
  177. signs = true,
  178. underline = true,
  179. },
  180. cross_file_rename = true,
  181. header_insertion = "never",
  182. },
  183. ruby = {
  184. diagnostics = {
  185. virtualtext = { spacing = 0, prefix = "" },
  186. signs = true,
  187. underline = true,
  188. },
  189. filetypes = { "rb", "erb", "rakefile", "ruby" },
  190. },
  191. go = {},
  192. elixir = {},
  193. vim = {},
  194. yaml = {},
  195. terraform = {},
  196. rust = {
  197. rust_tools = {
  198. active = false,
  199. },
  200. linter = "",
  201. diagnostics = {
  202. virtual_text = { spacing = 0, prefix = "" },
  203. signs = true,
  204. underline = true,
  205. },
  206. },
  207. svelte = {},
  208. php = {
  209. environment = {
  210. php_version = "7.4",
  211. },
  212. diagnostics = {
  213. virtual_text = { spacing = 0, prefix = "" },
  214. signs = true,
  215. underline = true,
  216. },
  217. filetypes = { "php", "phtml" },
  218. },
  219. latex = {},
  220. kotlin = {},
  221. html = {},
  222. elm = {},
  223. emmet = { active = true },
  224. graphql = {},
  225. efm = {},
  226. docker = {},
  227. cmake = {},
  228. java = {},
  229. css = {
  230. virtual_text = true,
  231. },
  232. },
  233. dashboard = {
  234. custom_header = {
  235. "⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣀⣀⣀⣀⣀⣀⣀⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀",
  236. "⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣠⣤⣶⣾⠿⠿⠟⠛⠛⠛⠛⠿⠿⣿⣷⣤⣄⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀",
  237. " ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣠⣾⡿⠋⠉⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠙⠿⣷⣤⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀",
  238. "⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣤⡿⠛⠉⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠉⠛⢿⣦⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀",
  239. "⠀⠀⠀⠀⠀⠀⠀⠀⠀⡠⠒⠂⠉⠉⠉⠉⢩⣿⡿⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠹⣷⡄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀",
  240. "⠀⠀⠀⠀⠀⠀⠀⠀⠸⡀⠀⠀⠀⠀⠀⢰⣿⠋⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠙⣿⣧⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀",
  241. "⠀⠀⠀⠀⠀⠀⠀⠀⠀⠑⠠⡀⠀⠀⢀⣾⠋⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠘⣿⡆⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀",
  242. "⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠢⢀⣸⡟⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢹⣇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀",
  243. "⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣿⡧⢄⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢸⣿⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀",
  244. "⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣿⡇⠀⠈⠁⠒⠤⣀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢸⣿⣀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀",
  245. "⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢸⣇⠀⠀⠀⠀⠀⠀⠉⠢⠤⠀⢀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣸⡟⠈⠑⠄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀",
  246. "⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢿⡄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠉⠑⠒⠤⣀⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢠⣿⡇⠀⠀⢀⣣⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀",
  247. "⠀⣿⡟⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠸⣷⡄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠉⠀⠀⠒⠢⠤⠄⣀⣀⠀⠀⠀⢠⣿⡟⠀⠀⠀⣺⣿⡿⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀",
  248. "⠀⣿⠇⠀⠀⠀⠀⠀⣤⡄⠀⠀⢠⣤⡄⠀⢨⣭⣠⣤⣤⣤⡀⠀⠀⢀⣤⣤⣤⣤⡄⠀⠀⠀⣤⣄⣤⣤⣤⠀⠀⣿⣯⠉⠉⣿⡟⠀⠈⢩⣭⣤⣤⠀⠀⠀⠀⣠⣤⣤⣤⣄⣤⣤",
  249. "⢠⣿⠀⠀⠀⠀⠀⠀⣿⠃⠀⠀⣸⣿⠁⠀⣿⣿⠉⠀⠈⣿⡇⠀⠀⠛⠋⠀⠀⢹⣿⠀⠀⠀⣿⠏⠀⠸⠿⠃⠀⣿⣿⠀⣰⡟⠀⠀⠀⠀⠀⢸⣿⠀⠀⠀⠀⣿⡟⢸⣿⡇⢀⣿",
  250. "⣸⡇⠀⠀⠀⠀⠀⢸⣿⠀⠀⠀⣿⡟⠀⢠⣿⡇⠀⠀⢰⣿⡇⠀⣰⣾⠟⠛⠛⣻⡇⠀⠀⢸⡿⠀⠀⠀⠀⠀⠀⢻⣿⢰⣿⠀⠀⠀⠀⠀⠀⣾⡇⠀⠀⠀⢸⣿⠇⢸⣿⠀⢸⡏",
  251. "⣿⣧⣤⣤⣤⡄⠀⠘⣿⣤⣤⡤⣿⠇⠀⢸⣿⠁⠀⠀⣼⣿⠀⠀⢿⣿⣤⣤⠔⣿⠃⠀⠀⣾⡇⠀⠀⠀⠀⠀⠀⢸⣿⣿⠋⠀⠀⠀⢠⣤⣤⣿⣥⣤⡄⠀⣼⣿⠀⣸⡏⠀⣿⠃",
  252. "⠉⠉⠉⠉⠉⠁⠀⠀⠈⠉⠉⠀⠉⠀⠀⠈⠉⠀⠀⠀⠉⠉⠀⠀⠀⠉⠉⠁⠈⠉⠀⠀⠀⠉⠀⠀⠀⠀⠀⠀⠀⠈⠉⠉⠀⠀⠀⠀⠈⠉⠉⠉⠉⠉⠁⠀⠉⠁⠀⠉⠁⠀⠉⠀",
  253. },
  254. footer = { "chrisatmachine.com" },
  255. },
  256. }