diff options
-rw-r--r-- | init.lua | 1 | ||||
-rw-r--r-- | lua/nv-dadbod/init.lua | 4 | ||||
-rw-r--r-- | lua/nv-doge/init.lua | 1 | ||||
-rw-r--r-- | lua/nv-globals.lua | 5 | ||||
-rw-r--r-- | lua/plugins.lua | 3 | ||||
-rw-r--r-- | vimscript/nv-whichkey/init.vim | 10 |
6 files changed, 21 insertions, 3 deletions
@@ -37,6 +37,7 @@ require('nv-lightbulb') require('nv-indentline') require('nv-bookmark') require('nv-dadbod') +require('nv-doge') -- require('nv-lspinstall') -- Which Key (Hope to replace with Lua plugin someday) diff --git a/lua/nv-dadbod/init.lua b/lua/nv-dadbod/init.lua index be086679..f5de451a 100644 --- a/lua/nv-dadbod/init.lua +++ b/lua/nv-dadbod/init.lua @@ -2,5 +2,5 @@ vim.api.nvim_set_keymap("n", "<leader>Du", ":DBUIToggle<CR>", {noremap=true, sil vim.api.nvim_set_keymap("n", "<leader>Df", ":DBUIFindBuffer<CR>", {noremap=true, silent = true}) vim.api.nvim_set_keymap("n", "<leader>Dr", ":DBUIRenameBuffer<CR>", {noremap=true, silent = true}) vim.api.nvim_set_keymap("n", "<leader>Dl", ":DBUILastQueryInfo<CR>", {noremap=true, silent = true}) -vim.g.db_ui_save_location = O.db_ui_save_location -vim.g.db_ui_auto_execute_table_helpers = 1
\ No newline at end of file +vim.g.db_ui_save_location = O.database.save_location +vim.g.db_ui_auto_execute_table_helpers = O.database.auto_execute
\ No newline at end of file diff --git a/lua/nv-doge/init.lua b/lua/nv-doge/init.lua new file mode 100644 index 00000000..31746795 --- /dev/null +++ b/lua/nv-doge/init.lua @@ -0,0 +1 @@ +vim.g.doge_mapping = '<Leader>*'
\ No newline at end of file diff --git a/lua/nv-globals.lua b/lua/nv-globals.lua index 31e93f8e..4c18a6e1 100644 --- a/lua/nv-globals.lua +++ b/lua/nv-globals.lua @@ -4,7 +4,10 @@ O = { colorscheme = 'nvcode', relative_number = true, shell = 'bash', - db_ui_save_location = '~/.config/nvcode_db', + database = { + save_location = '~/.config/nvcode_db', + auto_execute = 1 + }, python = { linter = '', -- @usage can be 'yapf', 'black' diff --git a/lua/plugins.lua b/lua/plugins.lua index 21ea5018..7341295e 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -118,6 +118,9 @@ return require('packer').startup(function(use) use 'kristijanhusak/vim-dadbod-ui' use 'kristijanhusak/vim-dadbod-completion' + -- Documentation Generator + use {'kkoomen/vim-doge', run = ':call doge#install()'} + -- TODO put this back when stable for indent lines -- vim.g.indent_blankline_space_char = 'ï‘„' -- use 'b3nj5m1n/kommentary' diff --git a/vimscript/nv-whichkey/init.vim b/vimscript/nv-whichkey/init.vim index 6230dc5c..fb1a83ab 100644 --- a/vimscript/nv-whichkey/init.vim +++ b/vimscript/nv-whichkey/init.vim @@ -32,6 +32,7 @@ let g:which_key_map['h'] = [ '<C-W>s' , let g:which_key_map['M'] = [ ':MarkdownPreviewToggle' , 'markdown preview'] let g:which_key_map['h'] = [ ':let @/ = ""' , 'no highlight' ] let g:which_key_map['r'] = [ ':RnvimrToggle' , 'ranger' ] +let g:which_key_map['*'] = [ ':DogeGenerate' , 'documentation generator' ] " TODO create entire treesitter section let g:which_key_map['T'] = [ ':TSHighlightCapturesUnderCursor' , 'treesitter highlight' ] let g:which_key_map['v'] = [ '<C-W>v' , 'split right'] @@ -100,6 +101,15 @@ let g:which_key_map.d = { " \ 'O' : ['DebugStepOut' , 'next-buffer'], " \ 'S' : ['DebugGetSession ' , 'fzf-buffer'], +" D is for database +let g:which_key_map.D = { + \ 'name' : '+database' , + \ 'u' : ['DBUIToggle ' , 'db ui toggle'], + \ 'f' : ['DBUIFindBuffer' , 'db find buffer'], + \ 'r' : ['DBUIRenameBuffer' , 'db rename buffer'], + \ 'l' : ['DBUILastQueryInfo' , 'db last query'], + \ } + " F is for fold let g:which_key_map.F = { |