lv-globals.lua 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. CONFIG_PATH = vim.fn.stdpath('config')
  2. DATA_PATH = vim.fn.stdpath('data')
  3. CACHE_PATH = vim.fn.stdpath('cache')
  4. O = {
  5. auto_close_tree = 0,
  6. auto_complete = true,
  7. colorscheme = 'lunar',
  8. hidden_files = true,
  9. wrap_lines = false,
  10. number = true,
  11. relative_number = true,
  12. shell = 'bash',
  13. timeoutlen = 100,
  14. nvim_tree_disable_netrw = 0,
  15. extras = false,
  16. -- @usage pass a table with your desired languages
  17. treesitter = {
  18. ensure_installed = "all",
  19. ignore_install = {"haskell"},
  20. highlight = {enabled = true},
  21. playground = {enabled = true},
  22. rainbow = {enabled = false}
  23. },
  24. database = {save_location = '~/.config/nvcode_db', auto_execute = 1},
  25. python = {
  26. linter = '',
  27. -- @usage can be 'yapf', 'black'
  28. formatter = '',
  29. autoformat = false,
  30. isort = false,
  31. diagnostics = {virtual_text = {spacing = 0, prefix = ""}, signs = true, underline = true},
  32. analysis = {type_checking = "basic", auto_search_paths = true, use_library_code_types = true}
  33. },
  34. dart = {sdk_path = '/usr/lib/dart/bin/snapshots/analysis_server.dart.snapshot'},
  35. lua = {
  36. -- @usage can be 'lua-format'
  37. formatter = '',
  38. autoformat = false,
  39. diagnostics = {virtual_text = {spacing = 0, prefix = ""}, signs = true, underline = true}
  40. },
  41. sh = {
  42. -- @usage can be 'shellcheck'
  43. linter = '',
  44. -- @usage can be 'shfmt'
  45. formatter = '',
  46. autoformat = false,
  47. diagnostics = {virtual_text = {spacing = 0, prefix = ""}, signs = true, underline = true}
  48. },
  49. tsserver = {
  50. -- @usage can be 'eslint'
  51. linter = '',
  52. -- @usage can be 'prettier'
  53. formatter = '',
  54. autoformat = false,
  55. diagnostics = {virtual_text = {spacing = 0, prefix = ""}, signs = true, underline = true}
  56. },
  57. json = {
  58. -- @usage can be 'prettier'
  59. formatter = '',
  60. autoformat = false,
  61. diagnostics = {virtual_text = {spacing = 0, prefix = ""}, signs = true, underline = true}
  62. },
  63. tailwindls = {filetypes = {'html', 'css', 'scss', 'javascript', 'javascriptreact', 'typescript', 'typescriptreact'}},
  64. clang = {diagnostics = {virtual_text = {spacing = 0, prefix = ""}, signs = true, underline = true}},
  65. ruby = {
  66. diagnostics = {virtualtext = {spacing = 0, prefix = ""}, signs = true, underline = true},
  67. filetypes = {'rb', 'erb', 'rakefile'}
  68. },
  69. go = {},
  70. -- css = {formatter = '', autoformat = false, virtual_text = true},
  71. -- json = {formatter = '', autoformat = false, virtual_text = true}
  72. dashboard = {
  73. custom_header = {
  74. ' _..._ ',
  75. ' .\' (_`. _ __ ___ ',
  76. ' : . : | | _ _ _ __ __ _ _ _\\ \\ / (_)_ __ ___ ',
  77. ' :) () : | | | | | | \'_ \\ / _` | \'__\\ \\ / /| | \'_ ` _ \\ ',
  78. ' `. . .\' | |__| |_| | | | | (_| | | \\ V / | | | | | | |',
  79. ' `-...-\' |_____\\__,_|_| |_|\\__,_|_| \\_/ |_|_| |_| |_|',
  80. },
  81. footer= {'chrisatmachine.com'}
  82. }
  83. }