LunarVim/nv-settings.lua

55 lines
1.3 KiB
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-04-03 21:59:03 +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
O.wrap_lines = false
2021-03-28 03:10:23 +02:00
2021-04-03 21:59:03 +02:00
-- @usage pass a table with your desired languages
--O.treesitter.ensure_installed = "all"
--O.treesitter.ignore_install = {"haskell"}
--O.treesitter.highlight.enabled = true
--O.treesitter.playground.enabled = true
--O.treesitter.rainbow.enabled = false
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-03-27 09:06:14 +01:00
2021-03-27 22:21:52 +01:00
-- lua
-- 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'
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
-- create custom autocommand field (This would be easy with lua)