default-config.lua 9.1 KB

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