summaryrefslogtreecommitdiff
path: root/.config/nvim/config.lua
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2021-07-07 01:05:06 +0200
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2021-07-07 01:05:06 +0200
commit0111b31cb0008f4fcc55ddc373e63f124652b156 (patch)
tree075490fb19c4838fc58129da9f902a3370f6029e /.config/nvim/config.lua
parent6fcc69113bd7cc7295ef9dc068da80d043cbb8bb (diff)
Updated config based on Chris LunarVim release
Diffstat (limited to '.config/nvim/config.lua')
-rw-r--r--.config/nvim/config.lua49
1 files changed, 49 insertions, 0 deletions
diff --git a/.config/nvim/config.lua b/.config/nvim/config.lua
new file mode 100644
index 0000000..ca83853
--- /dev/null
+++ b/.config/nvim/config.lua
@@ -0,0 +1,49 @@
+-- O is the global options object
+
+-- THESE ARE EXAMPLE CONFIGS FEEL FREE TO CHANGE TO WHATEVER YOU WANT
+-- general
+O.auto_complete = true
+O.relative_number = true
+O.colorscheme = 'spacegray'
+O.timeoutlen = 100
+O.leader_key = ' '
+
+-- After changing plugin config it is recommended to run :PackerCompile
+O.plugin.hop.active = true
+O.plugin.colorizer.active = true
+O.plugin.trouble.active = true
+O.plugin.lazygit.active = true
+O.plugin.zen.active = true
+-- O.plugin.vim_rooter.active = true
+-- O.plugin.markdown_preview.active = true
+
+-- 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
+
+-- lua
+O.lang.lua.autoformat = false
+O.lang.lua.formatter = 'lua-format'
+
+-- python
+O.lang.python.formatter = 'black'
+O.lang.python.linter = 'flake8'
+O.lang.python.isort = true
+O.lang.python.autoformat = true
+O.lang.python.diagnostics.virtual_text = true
+O.lang.python.diagnostics.signs = true
+O.lang.python.diagnostics.underline = true
+
+-- rust
+
+-- go
+O.lang.go.autoformat = true
+
+-- json
+O.lang.json.autoformat = true
+O.lang.json.formatter = 'prettier'
+
+-- sh
+O.lang.sh.linter = 'shellcheck'
+O.lang.sh.formatter = 'shfmt'