2021-07-09 02:48:30 +02:00
|
|
|
--[[
|
|
|
|
O is the global options object
|
|
|
|
|
|
|
|
Linters should be
|
|
|
|
filled in as strings with either
|
|
|
|
a global executable or a path to
|
|
|
|
an executable
|
|
|
|
]]
|
|
|
|
-- THESE ARE EXAMPLE CONFIGS FEEL FREE TO CHANGE TO WHATEVER YOU WANT
|
2021-07-10 04:04:14 +02:00
|
|
|
|
2021-07-09 02:48:30 +02:00
|
|
|
-- general
|
2021-07-10 04:04:14 +02:00
|
|
|
|
2021-07-09 02:48:30 +02:00
|
|
|
O.format_on_save = true
|
2021-07-17 00:30:38 +02:00
|
|
|
O.lint_on_save = true
|
2021-07-10 04:04:14 +02:00
|
|
|
O.completion.autocomplete = true
|
2021-07-09 02:48:30 +02:00
|
|
|
O.colorscheme = "spacegray"
|
2021-07-10 15:27:55 +02:00
|
|
|
O.default_options.wrap = true
|
|
|
|
O.default_options.timeoutlen = 100
|
2021-07-09 02:48:30 +02:00
|
|
|
O.leader_key = " "
|
|
|
|
|
2021-07-10 23:34:20 +02:00
|
|
|
-- TODO: User Config for predefined plugins
|
2021-07-09 02:48:30 +02:00
|
|
|
-- After changing plugin config exit and reopen LunarVim, Run :PackerInstall :PackerCompile
|
|
|
|
O.plugin.dashboard.active = true
|
2021-07-15 05:15:12 +02:00
|
|
|
O.plugin.terminal.active = true
|
2021-07-09 02:48:30 +02:00
|
|
|
O.plugin.zen.active = false
|
2021-07-10 04:04:14 +02:00
|
|
|
O.plugin.zen.window.height = 0.90
|
2021-07-17 08:42:55 +02:00
|
|
|
O.plugin.nvimtree.side = "left"
|
|
|
|
O.plugin.nvimtree.show_icons.git = 0
|
2021-07-09 02:48:30 +02:00
|
|
|
|
|
|
|
-- if you don't want all the parsers change this to a table of the ones you want
|
|
|
|
O.treesitter.ensure_installed = {}
|
|
|
|
O.treesitter.ignore_install = { "haskell" }
|
|
|
|
O.treesitter.highlight.enabled = true
|
|
|
|
|
|
|
|
-- python
|
|
|
|
-- O.python.linter = 'flake8'
|
|
|
|
O.lang.python.isort = true
|
|
|
|
O.lang.python.diagnostics.virtual_text = true
|
|
|
|
O.lang.python.analysis.use_library_code_types = true
|
2021-07-17 00:30:38 +02:00
|
|
|
-- To change default formatter from yapf to black
|
2021-07-12 07:58:52 +02:00
|
|
|
-- O.lang.python.formatter.exe = "black"
|
|
|
|
-- O.lang.python.formatter.args = {"-"}
|
2021-07-17 00:30:38 +02:00
|
|
|
-- To change enabled linters
|
|
|
|
-- https://github.com/mfussenegger/nvim-lint#available-linters
|
|
|
|
-- O.lang.python.linters = { "flake8", "pylint", "mypy", ... }
|
2021-07-12 07:58:52 +02:00
|
|
|
|
|
|
|
-- go
|
2021-07-17 00:30:38 +02:00
|
|
|
-- To change default formatter from gofmt to goimports
|
2021-07-12 08:36:39 +02:00
|
|
|
-- O.lang.formatter.go.exe = "goimports"
|
2021-07-09 02:48:30 +02:00
|
|
|
|
|
|
|
-- javascript
|
|
|
|
O.lang.tsserver.linter = nil
|
|
|
|
|
2021-07-11 20:07:08 +02:00
|
|
|
-- latex
|
|
|
|
-- O.lang.latex.auto_save = false
|
|
|
|
-- O.lang.latex.ignore_errors = { }
|
|
|
|
|
2021-07-09 02:48:30 +02:00
|
|
|
-- Additional Plugins
|
|
|
|
-- O.user_plugins = {
|
|
|
|
-- {"folke/tokyonight.nvim"}, {
|
|
|
|
-- "ray-x/lsp_signature.nvim",
|
|
|
|
-- config = function() require"lsp_signature".on_attach() end,
|
|
|
|
-- event = "InsertEnter"
|
|
|
|
-- }
|
|
|
|
-- }
|
|
|
|
|
|
|
|
-- Autocommands (https://neovim.io/doc/user/autocmd.html)
|
|
|
|
-- O.user_autocommands = {{ "BufWinEnter", "*", "echo \"hi again\""}}
|
|
|
|
|
|
|
|
-- Additional Leader bindings for WhichKey
|
|
|
|
-- O.user_which_key = {
|
|
|
|
-- A = {
|
|
|
|
-- name = "+Custom Leader Keys",
|
|
|
|
-- a = { "<cmd>echo 'first custom command'<cr>", "Description for a" },
|
|
|
|
-- b = { "<cmd>echo 'second custom command'<cr>", "Description for b" },
|
|
|
|
-- },
|
|
|
|
-- }
|