default-config.lua 9.5 KB

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