diff --git a/home/modules/nvf.nix b/home/modules/nvf.nix index 8a9ace2..aa573f7 100644 --- a/home/modules/nvf.nix +++ b/home/modules/nvf.nix @@ -15,20 +15,20 @@ pydocstring ]; - autocmds = [ - { - event = "FileType"; - pattern = "python"; - callback = '' + extraConfigLua = '' + -- Python-only keybinding + vim.api.nvim_create_autocmd("FileType", { + pattern = "python", + callback = function() vim.keymap.set( "n", "ds", "silent !pydocstring --style google", { buffer = true, desc = "Generate Python docstring" } ) - ''; - } - ]; + end, + }) + ''; settings.vim = { theme = {