mirror of
https://github.com/LunarVim/LunarVim.git
synced 2024-09-21 02:55:09 +02:00
70 lines
1.6 KiB
Lua
70 lines
1.6 KiB
Lua
--[[
|
|
O is the global options object
|
|
|
|
Formatters and linters should be
|
|
filled in as strings with either
|
|
a global executable or a path to
|
|
an executable
|
|
]]
|
|
|
|
-- general
|
|
O.auto_complete = true
|
|
O.colorscheme = 'lunar'
|
|
O.auto_close_tree = 0
|
|
O.wrap_lines = false
|
|
O.timeoutlen = 100
|
|
O.document_highlight = true
|
|
O.extras = true
|
|
|
|
-- dashboard
|
|
-- O.dashboard.custom_header = {""}
|
|
-- O.dashboard.footer = {""}
|
|
|
|
-- if you don't want all the parsers change this to a table of the ones you want
|
|
O.treesitter.ensure_installed = "all"
|
|
O.treesitter.ignore_install = {"haskell"}
|
|
O.treesitter.highlight.enabled = true
|
|
|
|
|
|
O.clang.diagnostics.virtual_text = false
|
|
O.clang.diagnostics.signs = false
|
|
O.clang.diagnostics.underline = false
|
|
|
|
-- 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
|
|
O.python.formatter = 'yapf'
|
|
-- O.python.linter = 'flake8'
|
|
O.python.isort = true
|
|
O.python.autoformat = true
|
|
O.python.diagnostics.virtual_text = true
|
|
O.python.diagnostics.signs = true
|
|
O.python.diagnostics.underline = true
|
|
O.python.analysis.type_checking = "off"
|
|
O.python.analysis.auto_search_paths = true
|
|
O.python.analysis.use_library_code_types = true
|
|
|
|
-- lua
|
|
-- TODO look into stylua
|
|
O.lua.formatter = 'lua-format'
|
|
-- O.lua.formatter = 'lua-format'
|
|
O.lua.autoformat = false
|
|
|
|
-- javascript
|
|
O.tsserver.formatter = 'prettier'
|
|
O.tsserver.linter = nil
|
|
O.tsserver.autoformat = true
|
|
|
|
-- json
|
|
O.json.autoformat = true
|
|
|
|
-- ruby
|
|
O.ruby.autoformat = true
|
|
|
|
-- go
|
|
O.go.autoformat = true
|
|
-- create custom autocommand field (This would be easy with lua)
|
|
|
|
-- Turn off relative_numbers
|
|
-- O.relative_number = false
|