From f5e8a5c13c10dd93d614dea2530877ef48071a22 Mon Sep 17 00:00:00 2001 From: jakobst1n Date: Wed, 22 May 2024 08:05:23 +0200 Subject: Update neovim, tweak some things --- Common/nvim/lua/helper_functions.lua | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'Common/nvim/lua/helper_functions.lua') 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', -- cgit v1.2.3