non important commit
This commit is contained in:
parent
12150c45a6
commit
ba70b80718
1 changed files with 11 additions and 13 deletions
|
|
@ -15,19 +15,17 @@
|
||||||
pydocstring
|
pydocstring
|
||||||
];
|
];
|
||||||
|
|
||||||
extraConfigLua = ''
|
extraConfig = ''
|
||||||
-- Python-only keybinding
|
" Python-only keybinding for pydocstring
|
||||||
vim.api.nvim_create_autocmd("FileType", {
|
augroup NVFPythonDoc
|
||||||
pattern = "python",
|
autocmd!
|
||||||
callback = function()
|
autocmd FileType python lua vim.keymap.set(
|
||||||
vim.keymap.set(
|
|
||||||
"n",
|
"n",
|
||||||
"<leader>ds",
|
"<leader>ds",
|
||||||
"<cmd>silent !pydocstring --style google<cr>",
|
"<cmd>silent !pydocstring --style google<CR>",
|
||||||
{ buffer = true, desc = "Generate Python docstring" }
|
{ buffer = true, desc = "Generate Python docstring" }
|
||||||
)
|
)
|
||||||
end,
|
augroup END
|
||||||
})
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
settings.vim = {
|
settings.vim = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue