summaryrefslogtreecommitdiff
path: root/nv-settings.lua
blob: b7fa43b40a93e8d3971f8454d592fdf79dbf8a68 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
--[[
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 = 'nvcode'

-- 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 = false
O.python.diagnostics.virtual_text = true
O.python.diagnostics.signs = true
O.python.diagnostics.underline = true

-- lua
O.lua.formatter = 'lua-format'

-- javascript
O.tsserver.formatter = 'prettier'
O.tsserver.linter = nil
O.tsserver.autoformat = false