lv-config.lua 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. --[[
  2. O is the global options object
  3. Formatters and linters should be
  4. filled in as strings with either
  5. a global executable or a path to
  6. an executable
  7. ]] -- THESE ARE EXAMPLE CONFIGS FEEL FREE TO CHANGE TO WHATEVER YOU WANT
  8. -- general
  9. O.auto_complete = true
  10. O.colorscheme = 'lunar'
  11. O.auto_close_tree = 0
  12. O.wrap_lines = false
  13. O.timeoutlen = 100
  14. O.document_highlight = true
  15. O.extras = false
  16. O.leader_key = ' '
  17. -- After changing plugin config it is recommended to run :PackerCompile
  18. O.plugin.hop.active = false
  19. O.plugin.dial.active = false
  20. O.plugin.dashboard.active = true
  21. O.plugin.matchup.active = false
  22. O.plugin.colorizer.active = false
  23. O.plugin.numb.active = false
  24. O.plugin.ts_playground.active = false
  25. O.plugin.indent_line.active = false
  26. O.plugin.gitlinker.active = true
  27. O.plugin.zen.active = true
  28. -- dashboard
  29. -- O.dashboard.custom_header = {""}
  30. -- O.dashboard.footer = {""}
  31. -- if you don't want all the parsers change this to a table of the ones you want
  32. O.treesitter.ensure_installed = "all"
  33. O.treesitter.ignore_install = {"haskell"}
  34. O.treesitter.highlight.enabled = true
  35. O.lang.clang.diagnostics.virtual_text = false
  36. O.lang.clang.diagnostics.signs = false
  37. O.lang.clang.diagnostics.underline = false
  38. -- python
  39. -- add things like O.python.formatter.yapf.exec_path
  40. -- add things like O.python.linter.flake8.exec_path
  41. -- add things like O.python.formatter.isort.exec_path
  42. O.lang.python.formatter = 'yapf'
  43. -- O.python.linter = 'flake8'
  44. O.lang.python.active = true
  45. O.lang.python.isort = true
  46. O.lang.python.autoformat = true
  47. O.lang.python.diagnostics.virtual_text = true
  48. O.lang.python.diagnostics.signs = true
  49. O.lang.python.diagnostics.underline = true
  50. O.lang.python.analysis.type_checking = "off"
  51. O.lang.python.analysis.auto_search_paths = true
  52. O.lang.python.analysis.use_library_code_types = true
  53. -- lua
  54. -- TODO look into stylua
  55. O.lang.lua.active = true
  56. O.lang.lua.formatter = 'lua-format'
  57. -- O.lua.formatter = 'lua-format'
  58. O.lang.lua.autoformat = false
  59. -- javascript
  60. O.lang.tsserver.formatter = 'prettier'
  61. O.lang.tsserver.linter = nil
  62. O.lang.tsserver.autoformat = true
  63. -- json
  64. O.lang.json.autoformat = true
  65. -- ruby
  66. O.lang.ruby.autoformat = true
  67. -- go
  68. O.lang.go.autoformat = true
  69. -- create custom autocommand field (This would be easy with lua)
  70. -- Turn off relative_numbers
  71. -- O.relative_number = false
  72. -- Turn off cursorline
  73. -- O.cursorline = false
  74. -- Neovim turns the default cursor to 'Block'
  75. -- when switched back into terminal.
  76. -- This below line fixes that. Uncomment if needed.
  77. -- vim.cmd('autocmd VimLeave,VimSuspend * set guicursor=a:ver90') -- Beam
  78. -- vim.cmd('autocmd VimLeave,VimSuspend * set guicursor=a:hor20') -- Underline
  79. -- NOTE: Above code doesn't take a value from the terminal's cursor and
  80. -- replace it. It hardcodes the cursor shape.
  81. -- And I think `ver` means vertical and `hor` means horizontal.
  82. -- The numbers didn't make a difference in alacritty. Please change
  83. -- the number to something that suits your needs if it looks weird.