2021-03-25 23:24:05 -04:00
|
|
|
--[[
|
2021-03-27 01:59:28 -04:00
|
|
|
O is the global options object
|
2021-03-25 23:24:05 -04:00
|
|
|
|
2021-03-27 01:59:28 -04:00
|
|
|
Formatters and linters should be
|
|
|
|
filled in as strings with either
|
|
|
|
a global executable or a path to
|
|
|
|
an executable
|
2021-04-03 16:02:34 -04:00
|
|
|
]]
|
2021-04-03 15:59:03 -04:00
|
|
|
|
|
|
|
-- general
|
2021-03-27 17:21:52 -04:00
|
|
|
O.auto_complete = true
|
2021-04-03 16:02:34 -04:00
|
|
|
O.colorscheme = 'lunar'
|
2021-03-27 21:10:23 -04:00
|
|
|
O.auto_close_tree = 0
|
2021-04-02 16:19:53 -04:00
|
|
|
O.wrap_lines = false
|
2021-05-06 02:23:33 -04:00
|
|
|
O.timeoutlen = 100
|
2021-05-25 16:08:37 -07:00
|
|
|
O.document_highlight = true
|
2021-05-29 02:49:59 -04:00
|
|
|
O.extras = true
|
2021-03-27 21:10:23 -04:00
|
|
|
|
2021-05-18 08:36:33 -07:00
|
|
|
-- dashboard
|
2021-05-04 21:02:55 -05:00
|
|
|
-- O.dashboard.custom_header = {""}
|
|
|
|
-- O.dashboard.footer = {""}
|
|
|
|
|
2021-04-15 00:17:48 -04:00
|
|
|
-- if you don't want all the parsers change this to a table of the ones you want
|
2021-04-03 16:02:34 -04:00
|
|
|
O.treesitter.ensure_installed = "all"
|
|
|
|
O.treesitter.ignore_install = {"haskell"}
|
|
|
|
O.treesitter.highlight.enabled = true
|
2021-04-03 15:59:03 -04:00
|
|
|
|
|
|
|
|
2021-04-01 20:32:49 -04:00
|
|
|
O.clang.diagnostics.virtual_text = false
|
|
|
|
O.clang.diagnostics.signs = false
|
|
|
|
O.clang.diagnostics.underline = false
|
|
|
|
|
2021-03-27 17:21:52 -04:00
|
|
|
-- python
|
|
|
|
-- add things like O.python.formatter.yapf.exec_path
|
|
|
|
-- add things like O.python.linter.flake8.exec_path
|
|
|
|
-- add things like O.python.formatter.isort.exec_path
|
2021-03-27 01:59:28 -04:00
|
|
|
O.python.formatter = 'yapf'
|
2021-03-29 11:43:17 -04:00
|
|
|
-- O.python.linter = 'flake8'
|
2021-03-27 17:21:52 -04:00
|
|
|
O.python.isort = true
|
2021-03-28 03:52:09 -04:00
|
|
|
O.python.autoformat = true
|
2021-03-27 17:21:52 -04:00
|
|
|
O.python.diagnostics.virtual_text = true
|
|
|
|
O.python.diagnostics.signs = true
|
|
|
|
O.python.diagnostics.underline = true
|
2021-05-03 15:37:12 -05:00
|
|
|
O.python.analysis.type_checking = "off"
|
|
|
|
O.python.analysis.auto_search_paths = true
|
|
|
|
O.python.analysis.use_library_code_types = true
|
2021-03-27 04:06:14 -04:00
|
|
|
|
2021-03-27 17:21:52 -04:00
|
|
|
-- lua
|
2021-04-02 16:19:53 -04:00
|
|
|
-- TODO look into stylua
|
2021-03-27 17:21:52 -04:00
|
|
|
O.lua.formatter = 'lua-format'
|
2021-03-28 03:52:09 -04:00
|
|
|
-- O.lua.formatter = 'lua-format'
|
2021-04-02 16:19:53 -04:00
|
|
|
O.lua.autoformat = false
|
2021-03-26 20:28:08 -04:00
|
|
|
|
2021-03-27 17:21:52 -04:00
|
|
|
-- javascript
|
|
|
|
O.tsserver.formatter = 'prettier'
|
|
|
|
O.tsserver.linter = nil
|
2021-03-28 03:52:09 -04:00
|
|
|
O.tsserver.autoformat = true
|
|
|
|
|
|
|
|
-- json
|
|
|
|
O.json.autoformat = true
|
2021-03-28 03:58:56 -04:00
|
|
|
|
2021-04-27 06:59:23 +02:00
|
|
|
-- ruby
|
|
|
|
O.ruby.autoformat = true
|
2021-05-24 17:01:24 -05:00
|
|
|
|
|
|
|
-- go
|
|
|
|
O.go.autoformat = true
|
2021-03-28 03:58:56 -04:00
|
|
|
-- create custom autocommand field (This would be easy with lua)
|
2021-05-18 08:36:33 -07:00
|
|
|
|
|
|
|
-- Turn off relative_numbers
|
|
|
|
-- O.relative_number = false
|