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