default-config.lua 9.7 KB

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