LunarVim/nv-settings.lua

37 lines
854 B
Lua
Raw Normal View History

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-03-28 09:52:09 +02:00
]] -- general
2021-03-27 22:21:52 +01:00
O.auto_complete = true
2021-03-27 06:59:28 +01:00
O.colorscheme = 'nvcode'
2021-03-28 03:10:23 +02:00
O.auto_close_tree = 0
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-27 22:21:52 +01:00
O.python.linter = 'flake8'
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-03-27 09:06:14 +01:00
2021-03-27 22:21:52 +01:00
-- lua
O.lua.formatter = 'lua-format'
2021-03-28 09:52:09 +02:00
-- O.lua.formatter = 'lua-format'
O.lua.autoformat = true
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