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-03-28 03:52:09 -04:00
|
|
|
]] -- general
|
2021-03-27 17:21:52 -04:00
|
|
|
O.auto_complete = true
|
2021-03-27 01:59:28 -04:00
|
|
|
O.colorscheme = 'nvcode'
|
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-03-27 21:10:23 -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-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
|
|
|
|
|
|
|
-- create custom autocommand field (This would be easy with lua)
|