summaryrefslogtreecommitdiff
path: root/.config/nvim/config.lua
diff options
context:
space:
mode:
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'