summaryrefslogtreecommitdiff
path: root/.config/nvim/lua/_vim-pydocstring
diff options
context:
space:
mode:
Diffstat (limited to '.config/nvim/lua/_vim-pydocstring')
-rw-r--r--.config/nvim/lua/_vim-pydocstring/init.lua2
-rw-r--r--.config/nvim/lua/_vim-pydocstring/init.vim1
2 files changed, 2 insertions, 1 deletions
diff --git a/.config/nvim/lua/_vim-pydocstring/init.lua b/.config/nvim/lua/_vim-pydocstring/init.lua
new file mode 100644
index 0000000..abbbfbe
--- /dev/null
+++ b/.config/nvim/lua/_vim-pydocstring/init.lua
@@ -0,0 +1,2 @@
+vim.g.pydocstring_formatter = 'google'
+vim.api.nvim_set_keymap("n", "<leader>c", ":Pydocstring<CR>", {noremap=true, silent = true})
diff --git a/.config/nvim/lua/_vim-pydocstring/init.vim b/.config/nvim/lua/_vim-pydocstring/init.vim
deleted file mode 100644
index e3d5311..0000000
--- a/.config/nvim/lua/_vim-pydocstring/init.vim
+++ /dev/null
@@ -1 +0,0 @@
-let g:pydocstring_formatter = 'google'