aboutsummaryrefslogtreecommitdiff
path: root/Common/nvim/lua/helper_functions.lua
diff options
context:
space:
mode:
authorjakobst1n <jakob.stendahl@outlook.com>2024-05-22 08:05:23 +0200
committerjakobst1n <jakob.stendahl@outlook.com>2024-05-22 08:05:23 +0200
commitf5e8a5c13c10dd93d614dea2530877ef48071a22 (patch)
treed9119cd317eb235fdbb5229db71ed45b8d833ba3 /Common/nvim/lua/helper_functions.lua
parenteaf4ca6b91de4e3efceb092a17b97503cdaa05cd (diff)
downloaddotfiles-f5e8a5c13c10dd93d614dea2530877ef48071a22.tar.gz
dotfiles-f5e8a5c13c10dd93d614dea2530877ef48071a22.zip
Update neovim, tweak some things
Diffstat (limited to 'Common/nvim/lua/helper_functions.lua')
-rwxr-xr-xCommon/nvim/lua/helper_functions.lua17
1 files changed, 17 insertions, 0 deletions
diff --git a/Common/nvim/lua/helper_functions.lua b/Common/nvim/lua/helper_functions.lua
index 5889d5b..88eeb68 100755
--- a/Common/nvim/lua/helper_functions.lua
+++ b/Common/nvim/lua/helper_functions.lua
@@ -1,3 +1,20 @@
+-- Load local configuration
+-- For me this is usually something like
+-- let g:vimwiki_list = [
+-- \ {'name': 'I45', 'syntax': 'markdown', 'ext': 'md', 'auto_toc': 1,
+-- \ 'path': '~/_library/I45/',
+-- \ 'nested_syntaxes': {'python': 'python', 'sql': 'sql', 'ioql': 'ioql'}},
+-- \ {'name': 'P01', 'syntax': 'markdown', 'ext': 'md', 'auto_toc': 1,
+-- \ 'path': '~/_library/',
+-- \ }
+-- \]
+-- let g:db = "mysql://user@db001"
+vim.cmd [[
+if !empty(glob("~/.env.vim"))
+ source ~/.env.vim
+endif
+]]
+
-- Convenient sudo saving of file
vim.api.nvim_create_user_command(
'W', 'w !sudo tee % > /dev/null',