lv-globals.lua 3.2 KB

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