summaryrefslogtreecommitdiff
path: root/lv-settings.lua
diff options
context:
space:
mode:
authorchristianchiarulli <[email protected]>2021-04-15 00:17:48 -0400
committerchristianchiarulli <[email protected]>2021-04-15 00:17:48 -0400
commit2cd8c6a21cb6c9af91e631f565e31f5803cdaa7c (patch)
tree7207301e310a278c0f91b4595ddc93fd98238093 /lv-settings.lua
parent1853b4f2aa13b83ff542171060f92d3d4d961a68 (diff)
LunarVim
Diffstat (limited to 'lv-settings.lua')
-rw-r--r--lv-settings.lua52
1 files changed, 52 insertions, 0 deletions
diff --git a/lv-settings.lua b/lv-settings.lua
new file mode 100644
index 00000000..70d72b4a
--- /dev/null
+++ b/lv-settings.lua
@@ -0,0 +1,52 @@
+--[[
+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
+
+-- 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
+
+-- 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
+
+-- create custom autocommand field (This would be easy with lua)